Improve process logging

This commit is contained in:
Jordan Brown
2020-05-04 00:54:24 -04:00
parent 600a148113
commit 1b70379205
+3 -3
View File
@@ -85,7 +85,7 @@ namespace Tgstation.Server.Host.System
async Task<int> WrapLifetimeTask(Task<int> lifetimeTask)
{
var result = await lifetimeTask.ConfigureAwait(false);
logger.LogTrace("Process {0} ended with code {1}", Id, result);
logger.LogTrace("PID {0} ended with code {1}", Id, result);
return result;
}
@@ -120,7 +120,7 @@ namespace Tgstation.Server.Host.System
return;
try
{
logger.LogTrace("Terminating process...");
logger.LogTrace("Terminating PID {0}...", Id);
handle.Kill();
handle.WaitForExit();
}
@@ -140,7 +140,7 @@ namespace Tgstation.Server.Host.System
}
catch (Exception e)
{
logger.LogWarning("Unable to raise process priority! Exception: {0}", e);
logger.LogWarning("Unable to raise process priority for PID {0}! Exception: {1}", Id, e);
}
}