Adding the LoggedBuildContextTidier to the monolog logging so that the build id is added to log messages.
This commit is contained in:
parent
e44c7b90d6
commit
a453571fcb
|
@ -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++;
|
||||
|
||||
|
|
Loading…
Reference in a new issue