HTTP 헤더 400 로깅 및 인증값 보안이유로 hidden처리 고객요청으로 제거.

This commit is contained in:
cho
2026-02-02 10:25:19 +09:00
parent f58359baa1
commit c112164518
3 changed files with 23 additions and 12 deletions
@@ -57,17 +57,16 @@ public class HttpAdapterExtraLogUtil {
httpAdapterExtraLogVo.setHttpMethod(httpMethod);
for (HttpAdapterExtraHeaderVo httpAdapterExtraHeaderVo : headerVoList) {
String name = httpAdapterExtraHeaderVo.getName();
if(StringUtils.isNotBlank(name) && "authorization".equals(name.toLowerCase())) {
httpAdapterExtraHeaderVo.setValue("{hidden}");
}
String value = httpAdapterExtraHeaderVo.getValue();
if(StringUtils.isNotBlank(value) && value.length() > 400) {
value = value.substring(0, 400) + "...";
httpAdapterExtraHeaderVo.setValue(value);
}else if(value == null){
httpAdapterExtraHeaderVo.setValue(" ");
}
if (StringUtils.isNotBlank(value) && value.length() > 400) {
value = value.substring(0, 400) + "...";
httpAdapterExtraHeaderVo.setValue(value);
} else if (value == null) {
httpAdapterExtraHeaderVo.setValue(" ");
}
}
httpAdapterExtraLogVo.setHeaderList(headerVoList);
httpAdapterExtraLogVo.setHttpStatus(httpStatus);