Explorar o código

Merge pull request #353 from patforg/master

When handling exception log exception message rather generic message
Jordi Boggiano %!s(int64=11) %!d(string=hai) anos
pai
achega
53d0df17bb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Monolog/ErrorHandler.php

+ 1 - 1
src/Monolog/ErrorHandler.php

@@ -123,7 +123,7 @@ class ErrorHandler
     {
         $this->logger->log(
             $this->uncaughtExceptionLevel === null ? LogLevel::ERROR : $this->uncaughtExceptionLevel,
-            'Uncaught exception',
+            sprintf('Uncaught Exception %s: "%s" at %s line %s', get_class($e), $e->getMessage(), $e->getFile(), $e->getLine()),
             array('exception' => $e)
         );