mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-26 10:06:10 +01:00
Avoid empty espace on empty trace (#1979)
This commit is contained in:
@@ -303,6 +303,10 @@ class LineFormatter extends NormalizerFormatter
|
||||
$trace = str_replace("\n", "\n{$this->indentStacktraces}", $trace);
|
||||
}
|
||||
|
||||
if (trim($trace) === '') {
|
||||
return '';
|
||||
}
|
||||
|
||||
return "\n{$this->indentStacktraces}[stacktrace]\n{$this->indentStacktraces}" . $trace . "\n";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user