From 8b822e40640ede99b05bd2bce3955fa52db37927 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Sun, 10 Jun 2018 00:57:19 +0200 Subject: [PATCH] ArchiBoT/ASF code unification --- ArchiSteamFarm/ArchiLogger.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ArchiSteamFarm/ArchiLogger.cs b/ArchiSteamFarm/ArchiLogger.cs index 8a1994bb3..32f19c90f 100644 --- a/ArchiSteamFarm/ArchiLogger.cs +++ b/ArchiSteamFarm/ArchiLogger.cs @@ -52,7 +52,7 @@ namespace ArchiSteamFarm { // Otherwise, we ran into fatal exception before logging module could even get initialized, so activate fallback logging that involves file and console - string message = string.Format(DateTime.Now + " " + Strings.ErrorEarlyFatalExceptionInfo + Environment.NewLine, SharedInfo.Version); + string message = string.Format(DateTime.Now + " " + Strings.ErrorEarlyFatalExceptionInfo, SharedInfo.Version) + Environment.NewLine; try { await RuntimeCompatibility.File.WriteAllTextAsync(SharedInfo.LogFile, message).ConfigureAwait(false); @@ -61,13 +61,13 @@ namespace ArchiSteamFarm { } try { - Console.WriteLine(message); + Console.Write(message); } catch { // Ignored, we can't do anything with this } while (true) { - message = string.Format(Strings.ErrorEarlyFatalExceptionPrint, previousMethodName, exception.Message, exception.StackTrace); + message = string.Format(Strings.ErrorEarlyFatalExceptionPrint, previousMethodName, exception.Message, exception.StackTrace) + Environment.NewLine; try { await RuntimeCompatibility.File.AppendAllTextAsync(SharedInfo.LogFile, message).ConfigureAwait(false); @@ -76,7 +76,7 @@ namespace ArchiSteamFarm { } try { - Console.WriteLine(message); + Console.Write(message); } catch { // Ignored, we can't do anything with this }