fixed LoggedBuildContextTidier: now correctly replaces "build" object with "buildID" in log entries

This commit is contained in:
Alexander Wenzel 2013-11-12 23:19:55 +01:00
parent f987688269
commit 9c330687a0
2 changed files with 4 additions and 3 deletions

View file

@ -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);

View file

@ -2,9 +2,10 @@
namespace PHPCI\Helper;
use PHPCI\Model\Build;
class LoggedBuildContextTidier{
class LoggedBuildContextTidier
{
function __invoke()
{
return $this->tidyLoggedBuildContext(func_get_arg(0));