Skip to content

Commit

Permalink
fix: adjusted logging to emit a message and the stacktrace
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Peterson <[email protected]>
  • Loading branch information
mattp-swirldslabs committed Jun 28, 2024
1 parent a03863f commit 59bd8e3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public void onNext(final BlockStreamServiceGrpcProto.BlockResponse blockResponse
*/
@Override
public void onError(final Throwable t) {
LOGGER.log(System.Logger.Level.ERROR, "Unexpected consumer stream communication failure: {0}", t.getMessage());
LOGGER.log(System.Logger.Level.ERROR, "Unexpected consumer stream communication failure: %s".formatted(t), t);
mediator.unsubscribe(this);
}

Expand Down

0 comments on commit 59bd8e3

Please sign in to comment.