diff --git a/DATabase/Helper/Logger.cs b/DATabase/Helper/Logger.cs index 2fe98a1a..153cb159 100644 --- a/DATabase/Helper/Logger.cs +++ b/DATabase/Helper/Logger.cs @@ -97,21 +97,21 @@ namespace SabreTools.Helper /// True if the output could be written, false otherwise public bool Log(string output) { - // If we're writing to console, just write the string - if (!_tofile) - { - Console.WriteLine(output); - return true; - } + // Everything writes to console + Console.WriteLine(output); + // If we're writing to file, use the existing stream - try + if (_tofile) { - _log.WriteLine(output); - } - catch - { - Console.WriteLine("Could not write to log file!"); - return false; + try + { + _log.WriteLine(output); + } + catch + { + Console.WriteLine("Could not write to log file!"); + return false; + } } return true;