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();
// call it to make sure the library was loaded
sigar.getPid();
logger.trace("sigar loaded successfully");
} catch (Throwable t) {
logger.trace("Failed to load sigar", t);
logger.trace("failed to load sigar", t);
if (sigar != null) {
try {
sigar.close();