Skip to content

Commit 472247a

Browse files
committed
Display batch logs in the stdout in debug mode
1 parent a99873d commit 472247a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Command/BatchCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
4141
{
4242
$noDebug = $input->getOption('no-debug');
4343
if (!$noDebug) {
44-
$logger = $this->getContainer()->get('logger');
44+
$logger = $this->getContainer()->get('monolog.logger.batch');
4545
// Fixme: Use ConsoleHandler available on next Symfony version (2.4 ?)
4646
$logger->pushHandler(new StreamHandler('php://stdout'));
4747
}

0 commit comments

Comments
 (0)