log if sigar was loaded as well
This commit is contained in:
parent
2963f639e1
commit
9cd51ce177
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue