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,10 +69,14 @@ namespace IRaCIS.Application.Services.BusinessFilter
{
var result = objectResult.Value as IResponseOutput;
if (!string.IsNullOrWhiteSpace(result.LocalizedInfo))
{
//统一在这里记录国际化的日志信息
_logger.LogWarning($"{result.LocalizedInfo}");
}
}
else if (statusCode != 200 && !(objectResult.Value is IResponseOutput))
{
//---程序错误,请联系开发人员。