1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-01-31 09:09:00 +03:00

Fix newline in LogResult (#245)

Fixes an issue on Windows that would cause the `ResultErrorMessage` to
be unindented.

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
Octol1ttle 2023-12-31 15:42:59 +05:00 committed by GitHub
parent 3134c35751
commit 894e819865
Signed by: GitHub
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,6 +35,7 @@ public static class LoggerExtensions
return; return;
} }
logger.LogWarning("{UserMessage}\n{ResultErrorMessage}", message, result.Error.Message); logger.LogWarning("{UserMessage}{NewLine}{ResultErrorMessage}", message, Environment.NewLine,
result.Error.Message);
} }
} }