1
0
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:
Pavel Golovin
2016-10-10 19:01:08 +03:00
committed by GitHub
parent ccb4aeba21
commit c3c0abf2a4

View File

@@ -76,7 +76,7 @@ class LineFormatter extends NormalizerFormatter
}
}
$output = preg_replace('/%extra\..+?%/', '', $output);
$output = preg_replace('/%extra\..+?%/', '', $output);
foreach ($vars['context'] as $var => $val) {
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 (empty($vars['context'])) {