protected function tidyLoggedBuildContext(array $logRecord)
    {
        if (isset($logRecord['context']['build'])) {
            $build = $logRecord['context']['build'];
            if ($build instanceof Build) {
                $logRecord['context']['buildID'] = $build->getId();
                unset($logRecord['context']['build']);
            }
        }
        return $logRecord;
    }
protected function tidyLoggedBuildContext(array $logRecord)
    {
        if (isset($logRecord['context']['build'])) {
            $build = $logRecord['context']['build'];
            if ($build instanceof Build) {
                $logRecord['context']['buildID'] = $build->getId();
                unset($logRecord['context']['build']);
            }
        }
        return $logRecord;
    }
protected function tidyLoggedBuildContext ( array $ logRecord ) { if ( isset ( $ logRecord [ 'context' ] [ 'build' ] ) ) { $ build = $ logRecord [ 'context' ] [ 'build' ] ; if ( $ build instanceof Build ) { $ logRecord [ 'context' ] [ 'buildID' ] = $ build -> getId ( ) ; unset ( $ logRecord [ 'context' ] [ 'build' ] ) ; } } return $ logRecord ; }
Removes the build object from the logged record and adds the ID as
this is more useful to display.

@param array $logRecord
@return array
Removes the build object from the logged record and adds the ID as this is more useful to display .