mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-06 05:07:36 +02:00
Update LineFormatter.php
This commit is contained in:
@@ -76,7 +76,7 @@ class LineFormatter extends NormalizerFormatter
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$output = preg_replace('/%extra\..+?%/', '', $output);
|
$output = preg_replace('/%extra\..+?%/', '', $output);
|
||||||
|
|
||||||
foreach ($vars['context'] as $var => $val) {
|
foreach ($vars['context'] as $var => $val) {
|
||||||
if (false !== strpos($output, '%context.'.$var.'%')) {
|
if (false !== strpos($output, '%context.'.$var.'%')) {
|
||||||
@@ -85,7 +85,7 @@ class LineFormatter extends NormalizerFormatter
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$output = preg_replace('/%context\..+?%/', '', $output);
|
$output = preg_replace('/%context\..+?%/', '', $output);
|
||||||
|
|
||||||
if ($this->ignoreEmptyContextAndExtra) {
|
if ($this->ignoreEmptyContextAndExtra) {
|
||||||
if (empty($vars['context'])) {
|
if (empty($vars['context'])) {
|
||||||
|
Reference in New Issue
Block a user