Sfoglia il codice sorgente

Add error logging for fatals in updates

Jordi Boggiano 6 anni fa
parent
commit
4383ed025e
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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