统一记录日志增加判断
continuous-integration/drone/push Build is passing Details

EICS-V1.6.0
hang 2024-08-26 12:33:41 +08:00
parent 0697003b78
commit 6f43535cf7
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;
//统一在这里记录国际化的日志信息
_logger.LogWarning($"{result.LocalizedInfo}");
if (!string.IsNullOrWhiteSpace(result.LocalizedInfo))
{
//统一在这里记录国际化的日志信息
_logger.LogWarning($"{result.LocalizedInfo}");
}
}
else if (statusCode != 200 && !(objectResult.Value is IResponseOutput))