From 1b70379205ef49e6828fa748b5cffaf3ee73af0e Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Mon, 4 May 2020 00:54:24 -0400 Subject: [PATCH] Improve process logging --- src/Tgstation.Server.Host/System/Process.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Tgstation.Server.Host/System/Process.cs b/src/Tgstation.Server.Host/System/Process.cs index c064733d1f..b96f78f12e 100644 --- a/src/Tgstation.Server.Host/System/Process.cs +++ b/src/Tgstation.Server.Host/System/Process.cs @@ -85,7 +85,7 @@ namespace Tgstation.Server.Host.System async Task WrapLifetimeTask(Task 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); } }