diff --git a/src/Monolog/Processor/GitProcessor.php b/src/Monolog/Processor/GitProcessor.php index f2eafd1c..0bb45fca 100644 --- a/src/Monolog/Processor/GitProcessor.php +++ b/src/Monolog/Processor/GitProcessor.php @@ -28,15 +28,8 @@ class GitProcessor $branch = self::getBranch(); $commit = self::getCommit(); - $record['extra'] = array_merge( - $record['extra'], - array( - 'git' => array( - 'branch' => $branch, - 'commit' => $commit - ), - ) - ); + $record['extra']['git']['branch'] = $branch; + $record['extra']['git']['commit'] = $commit; return $record; }