From db32ca5f2973ff4301511926c72d2e71ea6b5a8e Mon Sep 17 00:00:00 2001 From: Dominion Date: Thu, 8 Jun 2023 03:38:55 -0400 Subject: [PATCH] Improve logging here --- .../Security/WindowsSystemIdentityFactory.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Tgstation.Server.Host/Security/WindowsSystemIdentityFactory.cs b/src/Tgstation.Server.Host/Security/WindowsSystemIdentityFactory.cs index 774170c4a4..47ec0f3e3d 100644 --- a/src/Tgstation.Server.Host/Security/WindowsSystemIdentityFactory.cs +++ b/src/Tgstation.Server.Host/Security/WindowsSystemIdentityFactory.cs @@ -79,9 +79,13 @@ namespace Tgstation.Server.Host.Security { throw; } - catch (Exception e) + catch (Exception ex) { - logger.LogWarning(e, "Error loading user for context type {0}!", contextType); + logger.LogDebug( + ex, + "Error loading user for context type {contextType} and principal \"{domainName}\"!", + contextType, + domainName); } finally {