mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-07 05:36:45 +02:00
Merge pull request #594 from nike-17/patch-2
Update MemoryPeakUsageProcessor.php
This commit is contained in:
@@ -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']['memory_peak_usage'] = $formatted;
|
||||||
$record['extra'],
|
|
||||||
array(
|
|
||||||
'memory_peak_usage' => $formatted,
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
return $record;
|
return $record;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user