Переглянути джерело

[FrameworkBundle] added an error message when an exception is thrown when handling another exception

Fabien Potencier 15 роки тому
батько
коміт
50617e1acb

+ 2 - 0
src/Symfony/Bundle/FrameworkBundle/Controller/ExceptionListener.php

@@ -72,6 +72,8 @@ class ExceptionListener
 
             error_log(sprintf('%s: %s', get_class($exception), $exception->getMessage()));
         } catch (\Exception $e) {
+            error_log(sprintf('Exception thrown when handling an exception (%s: %s)', get_class($e), $e->getMessage()));
+
             return false;
         }