fix: 修复审计日志错误信息

This commit is contained in:
橙子
2024-11-10 17:33:20 +08:00
parent aea0896356
commit 17bc4ade84

View File

@@ -75,8 +75,8 @@ namespace Yi.Abp.Web
{ {
//默认关闭,开启会有大量的审计日志 //默认关闭,开启会有大量的审计日志
optios.IsEnabled = true; optios.IsEnabled = true;
//审计日志过滤器 //审计日志过滤器,符合条件的才记录
optios.AlwaysLogSelectors.Add(x => Task.FromResult(!x.Url.StartsWith("/api/app/file/"))); optios.AlwaysLogSelectors.Add(x => Task.FromResult(x.Url is null?true:!x.Url.StartsWith("/api/app/file/")));
}); });
//采用furion格式的规范化api默认不开启使用abp优雅的方式 //采用furion格式的规范化api默认不开启使用abp优雅的方式