Adding the LoggedBuildContextTidier to the monolog logging so that the build id is added to log messages.

This commit is contained in:
meadsteve 2013-10-27 14:25:43 +00:00
parent e44c7b90d6
commit a453571fcb

View file

@ -11,6 +11,7 @@ namespace PHPCI\Command;
use Monolog\Logger;
use PHPCI\Helper\BuildDBLogHandler;
use PHPCI\Helper\LoggedBuildContextTidier;
use PHPCI\Helper\OutputLogHandler;
use Psr\Log\LoggerAwareInterface;
use Symfony\Component\Console\Command\Command;
@ -63,6 +64,8 @@ class RunCommand extends Command
);
}
$logger->pushProcessor(new LoggedBuildContextTidier());
foreach ($result['items'] as $build) {
$builds++;