[backend/logger] Fix stack traces being written in a single line
This commit is contained in:
parent
b87e524b4f
commit
2eec7f75e3
1 changed files with 1 additions and 1 deletions
|
@ -131,9 +131,9 @@ file sealed class CustomFormatter() : ConsoleFormatter("custom") {
|
||||||
|
|
||||||
private static void CreateDefaultLogMessage<TState>(TextWriter textWriter, in LogEntry<TState> logEntry,
|
private static void CreateDefaultLogMessage<TState>(TextWriter textWriter, in LogEntry<TState> logEntry,
|
||||||
string message) {
|
string message) {
|
||||||
var singleLine = !message.Contains('\n');
|
|
||||||
var eventId = logEntry.EventId.Id;
|
var eventId = logEntry.EventId.Id;
|
||||||
var exception = logEntry.Exception;
|
var exception = logEntry.Exception;
|
||||||
|
var singleLine = !message.Contains('\n') && exception == null;
|
||||||
|
|
||||||
textWriter.Write(LoglevelPadding);
|
textWriter.Write(LoglevelPadding);
|
||||||
textWriter.Write(logEntry.Category);
|
textWriter.Write(logEntry.Category);
|
||||||
|
|
Loading…
Add table
Reference in a new issue