Don't crash the watchdog if the process priority can't be raised

Log a warning instead
This commit is contained in:
Jordan Brown
2018-09-13 19:29:13 -04:00
committed by GitHub
parent 5d8b2a9943
commit dd6b285551
+4 -1
View File
@@ -103,7 +103,10 @@ namespace Tgstation.Server.Host.Core
handle.PriorityClass = System.Diagnostics.ProcessPriorityClass.AboveNormal;
logger.LogTrace("Set to above normal priority", handle.Id);
}
catch (InvalidOperationException) { }
catch (InvalidOperationException e)
{
logger.LogWarning("Unable to raise process priority! Exception: {0}", e);
}
}
}
}