Skip to content

Commit

Permalink
fix: do not store enum in log property
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker committed Feb 8, 2024
1 parent a6c2f60 commit 58baccf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GZCTF/Utils/LogHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public static void Log<T>(this ILogger<T> logger, string msg, string uname, stri
{
using (LogContext.PushProperty("UserName", uname))
using (LogContext.PushProperty("IP", ip))
using (LogContext.PushProperty("Status", status))
using (LogContext.PushProperty("Status", status.ToString()))
{
logger.Log(level ?? LogLevel.Information, "{msg:l}", msg);
}
Expand Down

0 comments on commit 58baccf

Please sign in to comment.