Explorar o código

Add error logging for fatals in updates

Jordi Boggiano %!s(int64=6) %!d(string=hai) anos
pai
achega
4383ed025e
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/Packagist/WebBundle/Command/RunWorkersCommand.php

+ 2 - 0
src/Packagist/WebBundle/Command/RunWorkersCommand.php

@@ -36,6 +36,8 @@ class RunWorkersCommand extends Command
 
     protected function execute(InputInterface $input, OutputInterface $output)
     {
+        \Monolog\ErrorHandler::register($this->logger);
+
         $lock = new LockHandler('packagist_run_' . $input->getOption('worker-id'));
 
         // another dumper is still active