Always broadcast to chat on completion.
This commit is contained in:
parent
0d119eb9a6
commit
f881d9b95d
1 changed files with 3 additions and 3 deletions
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue