Improve logging here

This commit is contained in:
Dominion
2023-06-08 03:38:55 -04:00
parent a02f9966c2
commit db32ca5f29
@@ -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
{