fixed LoggedBuildContextTidier: now correctly replaces "build" object with "buildID" in log entries
This commit is contained in:
parent
f987688269
commit
9c330687a0
|
@ -249,7 +249,7 @@ class Builder implements LoggerAwareInterface
|
|||
|
||||
// The build is added to the context so the logger can use
|
||||
// details from it if required.
|
||||
$context['build'] = $this;
|
||||
$context['build'] = $this->build;
|
||||
|
||||
foreach ($message as $item) {
|
||||
$this->logger->log($level, $item, $context);
|
||||
|
|
|
@ -2,9 +2,10 @@
|
|||
|
||||
namespace PHPCI\Helper;
|
||||
|
||||
use PHPCI\Model\Build;
|
||||
|
||||
class LoggedBuildContextTidier{
|
||||
|
||||
class LoggedBuildContextTidier
|
||||
{
|
||||
function __invoke()
|
||||
{
|
||||
return $this->tidyLoggedBuildContext(func_get_arg(0));
|
||||
|
|
Loading…
Reference in a new issue