Compare commits

..

2 Commits

Author SHA1 Message Date
hang 4d14b31fb5 Merge branch 'Test_IRC_Net8' of http://192.168.3.68:2000/XCKJ/irc-netcore-api into Test_IRC_Net8
continuous-integration/drone/push Build is passing Details
2024-08-26 12:33:42 +08:00
hang 003064429d 统一记录日志增加判断 2024-08-26 12:33:41 +08:00
1 changed files with 6 additions and 2 deletions

View File

@ -69,8 +69,12 @@ namespace IRaCIS.Application.Services.BusinessFilter
{ {
var result = objectResult.Value as IResponseOutput; var result = objectResult.Value as IResponseOutput;
//统一在这里记录国际化的日志信息 if (!string.IsNullOrWhiteSpace(result.LocalizedInfo))
_logger.LogWarning($"{result.LocalizedInfo}"); {
//统一在这里记录国际化的日志信息
_logger.LogWarning($"{result.LocalizedInfo}");
}
} }
else if (statusCode != 200 && !(objectResult.Value is IResponseOutput)) else if (statusCode != 200 && !(objectResult.Value is IResponseOutput))