log if sigar was loaded as well

This commit is contained in:
Shay Banon 2012-04-04 15:08:06 +03:00
parent 2963f639e1
commit 9cd51ce177
1 changed files with 2 additions and 1 deletions

View File

@ -40,8 +40,9 @@ public class SigarService extends AbstractComponent {
sigar = new Sigar(); sigar = new Sigar();
// call it to make sure the library was loaded // call it to make sure the library was loaded
sigar.getPid(); sigar.getPid();
logger.trace("sigar loaded successfully");
} catch (Throwable t) { } catch (Throwable t) {
logger.trace("Failed to load sigar", t); logger.trace("failed to load sigar", t);
if (sigar != null) { if (sigar != null) {
try { try {
sigar.close(); sigar.close();