Skip to content

Commit

Permalink
Error stream id in log
Browse files Browse the repository at this point in the history
  • Loading branch information
vaibhav-db committed May 3, 2023
1 parent 7e21035 commit 9007a16
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ private BiFunction<? super ResourceResponse, Throwable, ResourceResponse> handle
private BiFunction<? super ResourceResponse, Throwable, ResourceResponse> handleErrorAndStorage(Object out, TeamsAddressable address, Map<String, Object> data, Response t) {
return (rr, e) -> {
if (e != null) {
LOG.error(e.getMessage());
LOG.error("Error message for stream id {} , message: {} ", address.getKey() , e.getMessage());
if (out instanceof ObjectNode){
try {
LOG.error("json:\n"+new ObjectMapper().writeValueAsString(out));
Expand Down

0 comments on commit 9007a16

Please sign in to comment.