feat(REQ-2516): 调整判断是否记录异常的逻辑
This commit is contained in:
parent
2c176f4653
commit
48225b1bd8
@ -339,6 +339,9 @@ public class GlobalExceptionHandler extends ResponseEntityExceptionHandler {
|
|||||||
headerValue = MDC.get(recordExceptionHeaderName);
|
headerValue = MDC.get(recordExceptionHeaderName);
|
||||||
}
|
}
|
||||||
log.info("recordException HeaderName: {}", headerValue);
|
log.info("recordException HeaderName: {}", headerValue);
|
||||||
|
if(!StringUtils.hasText(headerValue)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return headerValue.contains(RECORD_FLAG);
|
return headerValue.contains(RECORD_FLAG);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user