Skip to content

Commit

Permalink
Remove unnecessary fields from logs
Browse files Browse the repository at this point in the history
Signed-off-by: Rui Vieira <ruidevieira@googlemail.com>
  • Loading branch information
ruivieira committed Sep 4, 2024
1 parent 3a44450 commit 7a186a8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions src/main/java/com/ibm/watson/modelmesh/payload/Payload.java
Original file line number Diff line number Diff line change
Expand Up @@ -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" : "") +
'}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ private boolean sendPayload(Payload payload) {

HttpResponse<String> 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());
Expand Down Expand Up @@ -163,10 +163,8 @@ public String toString() {
"id='" + id + '\'' +
", modelid='" + modelid + '\'' +
", vModelId=" + (vModelId != null ? ('\'' + vModelId + '\'') : "null") +
", data='" + data + '\'' +
", kind='" + kind + '\'' +
", status='" + status + '\'' +
", metadata='" + metadata + '\'' +
'}';
}
}
Expand Down

0 comments on commit 7a186a8

Please sign in to comment.