Fixed regression when exception message swallowed when logging it.

This commit is contained in:
Konstantin.Myakshin 2016-09-21 18:21:51 +03:00
parent ca0fdf8977
commit 042cb6b2b2
1 changed files with 4 additions and 0 deletions

View File

@ -147,6 +147,10 @@ class LoggerDataCollector extends DataCollector implements LateDataCollectorInte
}
if (is_object($context)) {
if ($context instanceof \Exception) {
return sprintf('Exception(%s): %s', get_class($context), $context->getMessage());
}
return sprintf('Object(%s)', get_class($context));
}