응답 메시지 로그 수정

master
mjkhan21 1 year ago
parent e0aabf80fd
commit b35c48d3d2

@ -74,19 +74,19 @@ public class Requestor {
.header("IF_ID", intfInfo.interfaceID())
.header("SRC_ORG_CD", src.substring(0, 7))
.header("SRC_SYS_CD", src.substring(8))
.header("SRC_SYS_CD", src.substring(7))
.bodyData(intfInfo.getSourceMessage())
);
String body = hresp.body();
Log.get(Requestor.class).debug("targetMessage:\n{}", body);
if (WebClient.Request.SUCCESS != hresp.statusCode())
throw new RuntimeException(intfInfo.interfaceID() + ": " + hresp.statusCode());
Log.get(Requestor.class).debug("targetMessage:\n{}", hresp.body());
intfInfo
.json(json)
.parseTargetMessage(hresp.body());
.parseTargetMessage(body);
} catch (Exception e) {
throw Assert.runtimeException(e);
}

Loading…
Cancel
Save