From 8bfc9691421c8e35f0594fd13a91132f619bc9c0 Mon Sep 17 00:00:00 2001 From: Matt Gilman Date: Thu, 23 Apr 2015 11:28:11 -0400 Subject: [PATCH] NIFI-534: - Dumping the stack when debug is enabled. --- .../apache/nifi/cluster/manager/impl/WebClusterManager.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-cluster/src/main/java/org/apache/nifi/cluster/manager/impl/WebClusterManager.java b/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-cluster/src/main/java/org/apache/nifi/cluster/manager/impl/WebClusterManager.java index 9a8b014441..2cf026a591 100644 --- a/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-cluster/src/main/java/org/apache/nifi/cluster/manager/impl/WebClusterManager.java +++ b/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-cluster/src/main/java/org/apache/nifi/cluster/manager/impl/WebClusterManager.java @@ -424,6 +424,9 @@ public class WebClusterManager implements HttpClusterManager, ProtocolHandler, C } } catch(final Throwable t) { logger.warn("Unable to capture component metrics from Node heartbeats: " + t); + if (logger.isDebugEnabled()) { + logger.warn("", t); + } } finally { readLock.unlock("capture component metrics from node heartbeats"); }