mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-20 16:16:37 +02:00
tweeks
This commit is contained in:
@@ -15,7 +15,7 @@ use Monolog\Processor\MemoryProcessor;
|
||||
|
||||
/**
|
||||
* Injects memory_get_peak_usage in all records
|
||||
*
|
||||
*
|
||||
* @see Monolog\Processor\MemoryProcessor__construct() for options
|
||||
* @author Rob Jensen
|
||||
*/
|
||||
@@ -28,8 +28,8 @@ class MemoryPeakUsageProcessor extends MemoryProcessor
|
||||
*/
|
||||
public function __invoke(array $record)
|
||||
{
|
||||
$bytes = memory_get_peak_usage( $this->realUsage );
|
||||
$formatted = MemoryProcessor::formatBytes( $bytes );
|
||||
$bytes = memory_get_peak_usage($this->realUsage);
|
||||
$formatted = MemoryProcessor::formatBytes($bytes);
|
||||
|
||||
$record['extra'] = array_merge(
|
||||
$record['extra'],
|
||||
|
Reference in New Issue
Block a user