mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-29 16:11:05 +01:00
Don't crash the watchdog if the process priority can't be raised
Log a warning instead
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user