add debug logging to print when sigar is not loaded

This commit is contained in:
kimchy 2011-06-10 17:59:24 +03:00
parent 6382ddf43c
commit 3e1e58e394
1 changed files with 2 additions and 0 deletions

View File

@ -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