Browse Source

Add error logging for fatals in updates

Jordi Boggiano 6 years ago
parent
commit
4383ed025e
1 changed files with 2 additions and 0 deletions
  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