Fixing sub logging and moving stack trace to debug. (#4334)

* Fixing sub logging and moving stack trace to debug.

Signed-off-by: Matt Nelson <matt.nelson@consensys.net>
Co-authored-by: Matt Nelson <matt.nelson@Matts-MacBook-Pro.local>
pull/4327/head
Matt Nelson 2 years ago committed by GitHub
parent fd666dfd61
commit 86c308096b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      util/src/main/java/org/hyperledger/besu/util/Subscribers.java

@ -112,7 +112,8 @@ public class Subscribers<T> {
action.accept(subscriber); action.accept(subscriber);
} catch (final Exception e) { } catch (final Exception e) {
if (suppressCallbackExceptions) { if (suppressCallbackExceptions) {
LOG.error("Error in callback: ", e); LOG.error("Error in callback: {}", e.getMessage());
LOG.debug("Error in callback: ", e);
} else { } else {
throw e; throw e;
} }

Loading…
Cancel
Save