From 1c3b7a6cdd3cffec935767f47e410c4c0c472e91 Mon Sep 17 00:00:00 2001 From: otternq Date: Wed, 20 Nov 2013 00:41:49 -0800 Subject: [PATCH] updated data assignment based on @Seldaek suggestion --- src/Monolog/Processor/GitProcessor.php | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) 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; }