feat(REQ-2516): 调整判断是否记录异常的逻辑

This commit is contained in:
wangli 2024-06-26 15:30:27 +08:00
parent 2c176f4653
commit 48225b1bd8

View File

@ -339,6 +339,9 @@ public class GlobalExceptionHandler extends ResponseEntityExceptionHandler {
headerValue = MDC.get(recordExceptionHeaderName);
}
log.info("recordException HeaderName: {}", headerValue);
if(!StringUtils.hasText(headerValue)) {
return false;
}
return headerValue.contains(RECORD_FLAG);
}