From dd6b2855514647ce629f55c9ae39df6768ea1bd4 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Thu, 13 Sep 2018 19:29:13 -0400 Subject: [PATCH] Don't crash the watchdog if the process priority can't be raised Log a warning instead --- src/Tgstation.Server.Host/Core/Process.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Tgstation.Server.Host/Core/Process.cs b/src/Tgstation.Server.Host/Core/Process.cs index 513b0bbe71..cc6dd66cd7 100644 --- a/src/Tgstation.Server.Host/Core/Process.cs +++ b/src/Tgstation.Server.Host/Core/Process.cs @@ -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); + } } } }