From 44c0c7cc8ccad55992c18c2c8fed6813a18241c2 Mon Sep 17 00:00:00 2001 From: Jordan Dominion Date: Thu, 28 Dec 2023 22:28:10 -0500 Subject: [PATCH] Log the service user on `ServiceLifetime` creation --- src/Tgstation.Server.Host.Service/ServiceLifetime.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Tgstation.Server.Host.Service/ServiceLifetime.cs b/src/Tgstation.Server.Host.Service/ServiceLifetime.cs index f29cd0e919..f7630dc3b3 100644 --- a/src/Tgstation.Server.Host.Service/ServiceLifetime.cs +++ b/src/Tgstation.Server.Host.Service/ServiceLifetime.cs @@ -57,6 +57,8 @@ namespace Tgstation.Server.Host.Service this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); ArgumentNullException.ThrowIfNull(args); + logger.LogDebug("Starting service lifetime as user: {username}", Environment.UserName); + cancellationTokenSource = new CancellationTokenSource(); watchdogTask = RunWatchdog( stopService,