From 86c308096bdbfe46e04e9d6a6bc1c8ffec9897a7 Mon Sep 17 00:00:00 2001 From: Matt Nelson <85905982+non-fungible-nelson@users.noreply.github.com> Date: Wed, 31 Aug 2022 16:32:35 -0400 Subject: [PATCH] Fixing sub logging and moving stack trace to debug. (#4334) * Fixing sub logging and moving stack trace to debug. Signed-off-by: Matt Nelson Co-authored-by: Matt Nelson --- util/src/main/java/org/hyperledger/besu/util/Subscribers.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/src/main/java/org/hyperledger/besu/util/Subscribers.java b/util/src/main/java/org/hyperledger/besu/util/Subscribers.java index acadcb7361..507167fa01 100644 --- a/util/src/main/java/org/hyperledger/besu/util/Subscribers.java +++ b/util/src/main/java/org/hyperledger/besu/util/Subscribers.java @@ -112,7 +112,8 @@ public class Subscribers { action.accept(subscriber); } catch (final Exception e) { if (suppressCallbackExceptions) { - LOG.error("Error in callback: ", e); + LOG.error("Error in callback: {}", e.getMessage()); + LOG.debug("Error in callback: ", e); } else { throw e; }