1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-02-23 14:32:44 +01:00

Simplify MemoryUsageProcessor

Analog https://github.com/Seldaek/monolog/pull/594/files
This commit is contained in:
Markus Staab 2015-06-30 14:34:01 +02:00
parent 983392dbcb
commit b0e7c7097f

View File

@ -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;
}