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