Просмотр исходного кода

Merge pull request #594 from nike-17/patch-2

Update MemoryPeakUsageProcessor.php
Jordi Boggiano 10 лет назад
Родитель
Сommit
983392dbcb
1 измененных файлов с 1 добавлено и 6 удалено
  1. 1 6
      src/Monolog/Processor/MemoryPeakUsageProcessor.php

+ 1 - 6
src/Monolog/Processor/MemoryPeakUsageProcessor.php

@@ -28,12 +28,7 @@ class MemoryPeakUsageProcessor extends MemoryProcessor
         $bytes = memory_get_peak_usage($this->realUsage);
         $bytes = memory_get_peak_usage($this->realUsage);
         $formatted = $this->formatBytes($bytes);
         $formatted = $this->formatBytes($bytes);
 
 
-        $record['extra'] = array_merge(
-            $record['extra'],
-            array(
-                'memory_peak_usage' => $formatted,
-            )
-        );
+        $record['extra']['memory_peak_usage'] = $formatted;
 
 
         return $record;
         return $record;
     }
     }