HTTP 헤더 400 로깅 및 인증값 보안이유로 hidden처리 고객요청으로 제거.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user