mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
Merge remote-tracking branch 'refs/remotes/origin/master' into cleanup
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user