Adds more watchdog logs

This commit is contained in:
Jordan Brown
2018-07-15 17:23:49 -04:00
committed by GitHub
parent 2edb59f20b
commit 42650839b3
+5 -2
View File
@@ -374,7 +374,9 @@ namespace TGS.Server
}
}
WriteCurrentDDLog("Crash detected!");
WriteCurrentDDLog("Crash detected! Exit code: ": Proc.ExitCode);
var runtimeS = (DateTime.Now - starttime).TotalSeconds;
WriteWarning("DD crashed: Exit Code: " + Proc.ExitCode + " Seconds running: " + runtimeS);
lock (watchdogLock)
{
@@ -384,7 +386,7 @@ namespace TGS.Server
if (AwaitingShutdown == ShutdownRequestPhase.Pinged)
return;
var BadStart = (DateTime.Now - starttime).TotalSeconds < DDBadStartTime;
var BadStart = runtimeS < DDBadStartTime;
if (BadStart)
{
++retries;
@@ -619,6 +621,7 @@ namespace TGS.Server
{
GameAPIVersion = null; //needs updating
}
WriteInfo("Starting DD: " + Proc.StartInfo.FileName + " " + Proc.StartInfo.Arguments);
Proc.Start();
Proc.PriorityClass = ProcessPriorityClass.AboveNormal;