1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-06 21:26:43 +02:00

Update MemoryPeakUsageProcessor.php

more simple implementation
This commit is contained in:
Nikita
2015-06-29 15:15:06 -05:00
parent cc145b85fe
commit e26175d88a

View File

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