Merge remote-tracking branch 'refs/remotes/origin/master' into cleanup

This commit is contained in:
PsyKzz
2017-05-01 15:02:49 +01:00

View File

@@ -55,9 +55,17 @@ namespace SS14.Server.Services.Log
/// </summary>
public void Start()
{
logStream = new StreamWriter(LogPath, true);
logStream.AutoFlush = true;
try
{
logStream = new StreamWriter(LogPath, true);
}
catch (IOException e)
{
Console.WriteLine("Log file ('{0}') in use, unable to open file for logging.", LogPath);
Environment.Exit(1);
}
logStream.AutoFlush = true;
LogOne("LogManager started.", LogLevel.Information);
}