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