mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-02 11:20:31 +02:00
Only serialize things if needed
This commit is contained in:
@@ -50,8 +50,10 @@ class LineFormatter extends NormalizerFormatter
|
||||
}
|
||||
}
|
||||
foreach ($vars as $var => $val) {
|
||||
if (false !== strpos($output, '%'.$var.'%')) {
|
||||
$output = str_replace('%'.$var.'%', $this->convertToString($val), $output);
|
||||
}
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
Reference in New Issue
Block a user