Skip to content

Commit

Permalink
Logging: Quick fix for wrong indentation due to log newline also bein…
Browse files Browse the repository at this point in the history
…g indented.
  • Loading branch information
CptMoore committed Dec 5, 2024
1 parent 7372158 commit 6840900
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ModTek/Features/Logging/Formatter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,6 @@ internal string GetFormattedLogLine(MTLoggerMessageDto messageDto)
sb.Append(GetLocationString(messageDto.Location));
}

sb.Append(Environment.NewLine);

var line = sb.ToString();

if (_settings.NormalizeNewLines)
Expand All @@ -99,6 +97,8 @@ internal string GetFormattedLogLine(MTLoggerMessageDto messageDto)
line = line.Replace("\n", "\n\t");
}

line += "\n";

return line;
}

Expand Down

0 comments on commit 6840900

Please sign in to comment.