mirror of
https://github.com/Seldaek/monolog.git
synced 2025-02-23 14:32:44 +01:00
Merge pull request #595 from staabm/patch-2
Simplify MemoryUsageProcessor
This commit is contained in:
commit
ceeb33f521
@ -28,12 +28,7 @@ class MemoryUsageProcessor extends MemoryProcessor
|
||||
$bytes = memory_get_usage($this->realUsage);
|
||||
$formatted = $this->formatBytes($bytes);
|
||||
|
||||
$record['extra'] = array_merge(
|
||||
$record['extra'],
|
||||
array(
|
||||
'memory_usage' => $formatted,
|
||||
)
|
||||
);
|
||||
$record['extra']['memory_usage'] = $formatted;
|
||||
|
||||
return $record;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user