优化全局过滤器日志记录

This commit is contained in:
不做码农
2022-03-04 21:49:18 +08:00
parent 76c53b9915
commit 314eb40ed9
7 changed files with 140 additions and 38 deletions

View File

@@ -84,7 +84,7 @@ namespace ZR.Admin.WebApi.Middleware
operLocation = ip_info.Province + " " + ip_info.City,
operTime = DateTime.Now
};
LogActionFilter.GetRequestValue(sysOperLog, context);
HttpContextExtension.GetRequestValue(context, sysOperLog);
LogEventInfo ei = new(logLevel, "GlobalExceptionMiddleware", error);
ei.Exception = ex;