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,8 +50,10 @@ class LineFormatter extends NormalizerFormatter
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
foreach ($vars as $var => $val) {
|
foreach ($vars as $var => $val) {
|
||||||
|
if (false !== strpos($output, '%'.$var.'%')) {
|
||||||
$output = str_replace('%'.$var.'%', $this->convertToString($val), $output);
|
$output = str_replace('%'.$var.'%', $this->convertToString($val), $output);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return $output;
|
return $output;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user