mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-21 08:36:33 +02:00
Added configuration option to MemoryProcessors with a possibility to disable formatting.
This commit is contained in:
@@ -26,7 +26,7 @@ class MemoryPeakUsageProcessor extends MemoryProcessor
|
||||
public function __invoke(array $record)
|
||||
{
|
||||
$bytes = memory_get_peak_usage($this->realUsage);
|
||||
$formatted = self::formatBytes($bytes);
|
||||
$formatted = $this->formatBytes($bytes);
|
||||
|
||||
$record['extra'] = array_merge(
|
||||
$record['extra'],
|
||||
|
Reference in New Issue
Block a user