Skip to content

Commit

Permalink
Fix some missing string to json
Browse files Browse the repository at this point in the history
  • Loading branch information
henryju committed Nov 9, 2023
1 parent b9fa0f9 commit 016ccdc
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ private String consumeMessageSending(Message message, Instant now, String date)
String id = responseMessage.getId();
RequestMetadata requestMetadata = receivedRequests.remove(id);
if (requestMetadata == null) {
LOG.log(WARNING, String.format("Unmatched response message: %s", message));
LOG.log(WARNING, String.format("Unmatched response message: %s", jsonHandler.toString(message)));
return null;
}
String method = requestMetadata.method;
Expand All @@ -152,7 +152,7 @@ private String consumeMessageSending(Message message, Instant now, String date)
String format = "[Trace - %s] Sending notification '%s'\nParams: %s\n\n\n";
return String.format(format, date, method, paramsJson);
} else {
LOG.log(WARNING, String.format("Unknown message type: %s", message));
LOG.log(WARNING, String.format("Unknown message type: %s", jsonHandler.toString(message)));
return null;
}
}
Expand Down Expand Up @@ -192,7 +192,7 @@ private String consumeMessageReceiving(Message message, Instant now, String date
String format = "[Trace - %s] Received notification '%s'\nParams: %s\n\n\n";
return String.format(format, date, method, paramsJson);
} else {
LOG.log(WARNING, String.format("Unknown message type: %s", message));
LOG.log(WARNING, String.format("Unknown message type: %s", jsonHandler.toString(message)));
return null;
}
}
Expand Down

0 comments on commit 016ccdc

Please sign in to comment.