@@ -134,7 +134,7 @@ private String consumeMessageSending(Message message, Instant now, String date)
134
134
String id = responseMessage .getId ();
135
135
RequestMetadata requestMetadata = receivedRequests .remove (id );
136
136
if (requestMetadata == null ) {
137
- LOG .log (WARNING , String .format ("Unmatched response message: %s" , message ));
137
+ LOG .log (WARNING , String .format ("Unmatched response message: %s" , jsonHandler . toString ( message ) ));
138
138
return null ;
139
139
}
140
140
String method = requestMetadata .method ;
@@ -152,7 +152,7 @@ private String consumeMessageSending(Message message, Instant now, String date)
152
152
String format = "[Trace - %s] Sending notification '%s'\n Params: %s\n \n \n " ;
153
153
return String .format (format , date , method , paramsJson );
154
154
} else {
155
- LOG .log (WARNING , String .format ("Unknown message type: %s" , message ));
155
+ LOG .log (WARNING , String .format ("Unknown message type: %s" , jsonHandler . toString ( message ) ));
156
156
return null ;
157
157
}
158
158
}
@@ -192,7 +192,7 @@ private String consumeMessageReceiving(Message message, Instant now, String date
192
192
String format = "[Trace - %s] Received notification '%s'\n Params: %s\n \n \n " ;
193
193
return String .format (format , date , method , paramsJson );
194
194
} else {
195
- LOG .log (WARNING , String .format ("Unknown message type: %s" , message ));
195
+ LOG .log (WARNING , String .format ("Unknown message type: %s" , jsonHandler . toString ( message ) ));
196
196
return null ;
197
197
}
198
198
}
0 commit comments