From 59bd8e32aef8c0f47bb7971ae66ea3ba4da4348c Mon Sep 17 00:00:00 2001 From: Matt Peterson Date: Fri, 28 Jun 2024 08:07:19 -0600 Subject: [PATCH] fix: adjusted logging to emit a message and the stacktrace Signed-off-by: Matt Peterson --- .../hedera/block/server/consumer/LiveStreamObserverImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/java/com/hedera/block/server/consumer/LiveStreamObserverImpl.java b/server/src/main/java/com/hedera/block/server/consumer/LiveStreamObserverImpl.java index ce61e8a98..7a0d7db7b 100644 --- a/server/src/main/java/com/hedera/block/server/consumer/LiveStreamObserverImpl.java +++ b/server/src/main/java/com/hedera/block/server/consumer/LiveStreamObserverImpl.java @@ -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); }