HTTP Header 로그 off 기능 - -Duse.http.header.log=y 옵션 추가시 로깅

This commit is contained in:
curry772
2026-04-08 14:16:59 +09:00
parent 56ac438265
commit bc8b549a33
3 changed files with 33 additions and 8 deletions
@@ -21,6 +21,10 @@ import org.apache.commons.lang3.StringUtils;
public class HttpAdapterExtraLogUtil {
static Logger logger = Logger.getLogger(Logger.LOGGER_DEFAULT);
public static boolean isHttpHeaderMode() {
return StringUtils.equals(System.getProperty("use.http.header.log", "n"), "y");
}
public static void insertHttpAdapterExtraLog(String guid, int serviceProcessNumber, String adapterGroupName, String adapterName, Map<Object, Object> headers, String url, String httpMethod){
insertHttpAdapterExtraLog(guid, serviceProcessNumber, adapterGroupName, adapterName, headers, url, httpMethod, 0);