save loadError
This commit is contained in:
parent
e91665d842
commit
a9bd0f6a42
|
@ -50,12 +50,12 @@ public class Sigar implements SigarProxy {
|
||||||
try {
|
try {
|
||||||
loadLibrary();
|
loadLibrary();
|
||||||
} catch (SigarException e) {
|
} catch (SigarException e) {
|
||||||
String msg = "Sigar.load: " + e.getMessage();
|
loadError = "Sigar.load: " + e.getMessage();
|
||||||
try {
|
try {
|
||||||
SigarLog.debug(msg, e);
|
SigarLog.debug(loadError, e);
|
||||||
} catch (NoClassDefFoundError ne) {
|
} catch (NoClassDefFoundError ne) {
|
||||||
//no log4j.jar
|
//no log4j.jar
|
||||||
System.err.println(msg);
|
System.err.println(loadError);
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue