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

Merge pull request #634 from henriquemoody/resource_type

Better normalization for resources
This commit is contained in:
Jordi Boggiano
2015-08-30 12:24:10 +01:00
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).')]';