From a453571fcbabe9a79aaca1370be3325c0ad5b0aa Mon Sep 17 00:00:00 2001 From: meadsteve Date: Sun, 27 Oct 2013 14:25:43 +0000 Subject: [PATCH] Adding the LoggedBuildContextTidier to the monolog logging so that the build id is added to log messages. --- PHPCI/Command/RunCommand.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PHPCI/Command/RunCommand.php b/PHPCI/Command/RunCommand.php index 26ef6c1e..1efe68d1 100644 --- a/PHPCI/Command/RunCommand.php +++ b/PHPCI/Command/RunCommand.php @@ -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++;