[backend/logger] Fix stack traces being written in a single line

This commit is contained in:
Laura Hausmann 2024-02-10 17:08:30 +01:00
parent b87e524b4f
commit 2eec7f75e3
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -131,9 +131,9 @@ file sealed class CustomFormatter() : ConsoleFormatter("custom") {
private static void CreateDefaultLogMessage<TState>(TextWriter textWriter, in LogEntry<TState> logEntry,
string message) {
var singleLine = !message.Contains('\n');
var eventId = logEntry.EventId.Id;
var exception = logEntry.Exception;
var singleLine = !message.Contains('\n') && exception == null;
textWriter.Write(LoglevelPadding);
textWriter.Write(logEntry.Category);