diff --git a/src/main/java/com/ibm/watson/modelmesh/payload/Payload.java b/src/main/java/com/ibm/watson/modelmesh/payload/Payload.java index 6dcafd17f..1284f3935 100644 --- a/src/main/java/com/ibm/watson/modelmesh/payload/Payload.java +++ b/src/main/java/com/ibm/watson/modelmesh/payload/Payload.java @@ -124,8 +124,6 @@ public String toString() { ", modelId='" + modelId + '\'' + ", method='" + method + '\'' + ", status=" + (status == null ? "request" : String.valueOf(status)) + - ", metadata=" + metadata + - ", data=" + (data != null ? data.readableBytes() + "B" : "") + '}'; } } diff --git a/src/main/java/com/ibm/watson/modelmesh/payload/RemotePayloadProcessor.java b/src/main/java/com/ibm/watson/modelmesh/payload/RemotePayloadProcessor.java index 23c2fba10..dfb0e0e22 100644 --- a/src/main/java/com/ibm/watson/modelmesh/payload/RemotePayloadProcessor.java +++ b/src/main/java/com/ibm/watson/modelmesh/payload/RemotePayloadProcessor.java @@ -95,7 +95,7 @@ private boolean sendPayload(Payload payload) { HttpResponse response = client.send(request, HttpResponse.BodyHandlers.ofString()); if (response.statusCode() != 200) { - logger.warn("Processing {} with request {} didn't succeed: {}", payload, payloadContent, response); + logger.warn("Processing {} didn't succeed: {}", payload, response); } } catch (Throwable e) { logger.error("An error occurred while sending payload {} to {}: {}", payload, uri, e.getCause()); @@ -163,10 +163,8 @@ public String toString() { "id='" + id + '\'' + ", modelid='" + modelid + '\'' + ", vModelId=" + (vModelId != null ? ('\'' + vModelId + '\'') : "null") + - ", data='" + data + '\'' + ", kind='" + kind + '\'' + ", status='" + status + '\'' + - ", metadata='" + metadata + '\'' + '}'; } }