1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-22 00:56:08 +02:00

Better normalization for resources

This commit is contained in:
Henrique Moody
2015-08-20 15:00:04 -03:00
parent d58755629d
commit 50fb249739
3 changed files with 4 additions and 4 deletions

View File

@@ -106,7 +106,7 @@ class NormalizerFormatter implements FormatterInterface
}
if (is_resource($data)) {
return '[resource]';
return sprintf('[resource] (%s)', get_resource_type($data));
}
return '[unknown('.gettype($data).')]';