From 3e1e58e3944dd35663a26e8234eae6279f6d904f Mon Sep 17 00:00:00 2001 From: kimchy Date: Fri, 10 Jun 2011 17:59:24 +0300 Subject: [PATCH] add debug logging to print when sigar is not loaded --- .../src/main/java/org/elasticsearch/monitor/MonitorModule.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/monitor/MonitorModule.java b/modules/elasticsearch/src/main/java/org/elasticsearch/monitor/MonitorModule.java index b0cc8177b9d..b7f92167731 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/monitor/MonitorModule.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/monitor/MonitorModule.java @@ -23,6 +23,7 @@ import org.elasticsearch.common.inject.AbstractModule; import org.elasticsearch.common.inject.Scopes; import org.elasticsearch.common.inject.assistedinject.FactoryProvider; import org.elasticsearch.common.inject.multibindings.MapBinder; +import org.elasticsearch.common.logging.Loggers; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.monitor.dump.DumpContributorFactory; import org.elasticsearch.monitor.dump.DumpMonitorService; @@ -82,6 +83,7 @@ public class MonitorModule extends AbstractModule { } } catch (Throwable e) { // no sigar + Loggers.getLogger(MonitorModule.class).debug("failed to load sigar", e); } if (!sigarLoaded) { // bind non sigar implementations