diff --git a/tosan-soap-client/src/main/java/com/tosan/client/soap/handler/LogHandler.java b/tosan-soap-client/src/main/java/com/tosan/client/soap/handler/LogHandler.java index 9b77db9..00df9c7 100644 --- a/tosan-soap-client/src/main/java/com/tosan/client/soap/handler/LogHandler.java +++ b/tosan-soap-client/src/main/java/com/tosan/client/soap/handler/LogHandler.java @@ -49,10 +49,10 @@ public boolean handleMessage(SOAPMessageContext messageContext) { try { msg.writeTo(logStream); if (request) { - logParams.put("Soap Request", getBody(logStream)); + logParams.put("soap-request", getBody(logStream)); startTimeMillis.set(System.currentTimeMillis()); } else { - logParams.put("Soap Response", getBody(logStream)); + logParams.put("soap-response", getBody(logStream)); logParams.put("duration", getDurationLogMessage()); } logger.info(mapper.writeValueAsString(logParams)); @@ -76,7 +76,7 @@ public boolean handleFault(SOAPMessageContext c) { OutputStream logStream = new ByteArrayOutputStream(); msg.writeTo(logStream); Map params = new LinkedHashMap<>(); - params.put("Soap Fault", getBody(logStream)); + params.put("soap-fault", getBody(logStream)); params.put("duration", getDurationLogMessage()); logger.info(mapper.writeValueAsString(params)); } catch (Exception e) {