Always broadcast to chat on completion.

This commit is contained in:
flash 2019-02-11 15:19:18 +01:00
parent 0d119eb9a6
commit f881d9b95d

View file

@ -204,14 +204,14 @@ namespace BackupManager
SaveConfig(); SaveConfig();
sw.Stop(); sw.Stop();
Log($@"Done! Took {sw.Elapsed}."); Log($@"Done! Took {sw.Elapsed}.", true);
#if DEBUG #if DEBUG
Console.ReadLine(); Console.ReadLine();
#endif #endif
} }
public static void Log(object line) public static void Log(object line, bool forceSatori = false)
{ {
if (Headless) if (Headless)
return; return;
@ -226,7 +226,7 @@ namespace BackupManager
Console.WriteLine(line); Console.WriteLine(line);
if (!(Config?.SatoriErrorsOnly ?? true)) if (forceSatori || !(Config?.SatoriErrorsOnly ?? true))
SatoriBroadcast(line.ToString()); SatoriBroadcast(line.ToString());
} }