mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-27 23:17:20 +01:00
Fix
This commit is contained in:
@@ -331,5 +331,13 @@ namespace TGS.Server
|
||||
/// Warning: When a testmerge commit failed to be published
|
||||
/// </summary>
|
||||
ReferencePush = 7700,
|
||||
/// <summary>
|
||||
/// Warning: When the server exits unexpectedly
|
||||
/// </summary>
|
||||
DDServerCrash = 7800,
|
||||
/// <summary>
|
||||
/// Info: When the DreamDaemon process is about to be launched
|
||||
/// </summary>
|
||||
DDServerStart = 7800,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -374,9 +374,10 @@ namespace TGS.Server
|
||||
}
|
||||
}
|
||||
|
||||
WriteCurrentDDLog("Crash detected! Exit code: ": Proc.ExitCode);
|
||||
WriteCurrentDDLog("Crash detected! Exit code: " + Proc.ExitCode);
|
||||
var runtimeS = (DateTime.Now - starttime).TotalSeconds;
|
||||
WriteWarning("DD crashed: Exit Code: " + Proc.ExitCode + " Seconds running: " + runtimeS);
|
||||
WriteWarning("DD crashed: Exit Code: " + Proc.ExitCode + " Seconds running: " + runtimeS, EventID.DDServerCrash);
|
||||
|
||||
|
||||
lock (watchdogLock)
|
||||
{
|
||||
@@ -621,7 +622,7 @@ namespace TGS.Server
|
||||
{
|
||||
GameAPIVersion = null; //needs updating
|
||||
}
|
||||
WriteInfo("Starting DD: " + Proc.StartInfo.FileName + " " + Proc.StartInfo.Arguments);
|
||||
WriteInfo("Starting DD: " + Proc.StartInfo.FileName + " " + Proc.StartInfo.Arguments, EventID.DDServerStart);
|
||||
Proc.Start();
|
||||
Proc.PriorityClass = ProcessPriorityClass.AboveNormal;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user