Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | public function onConsoleException(ConsoleExceptionEvent $event) |
||
18 | { |
||
19 | $command = $event->getCommand(); |
||
20 | $exception = $event->getException(); |
||
21 | |||
22 | $message = sprintf( |
||
23 | '%s: %s (uncaught exception) at %s line %s while running console command `%s`', |
||
24 | get_class($exception), |
||
25 | $exception->getMessage(), |
||
26 | $exception->getFile(), |
||
27 | $exception->getLine(), |
||
28 | $command->getName() |
||
29 | ); |
||
30 | |||
31 | $this->logger->error($message, array('exception' => $exception)); |
||
32 | } |
||
33 | } |
||
34 |