cim = ContextInfoManager.getInstance();
} catch (SecurityException | IOException e) {
/* The native library is not available! */
- fail();
+ fail(e.getMessage());
}
session = ILttngSession.createSession(null, getDomain());
}
cim = ContextInfoManager.getInstance();
} catch (SecurityException | IOException e) {
/* The native library is not available! */
- fail();
+ fail(e.getMessage());
}
session = ILttngSession.createSession(null, getDomain());
}
try {
mgr = ContextInfoManager.getInstance();
} catch (SecurityException | IOException e) {
- fail();
+ fail(e.getMessage());
}
}
logger.addHandler(agentHandler);
} catch (ReflectiveOperationException e) {
- fail();
+ fail(e.getMessage());
}
session = ILttngSession.createSession(null, Domain.JUL);
try {
logHandler = new LttngLogHandler();
} catch (SecurityException | IOException e) {
- fail();
+ fail(e.getMessage());
}
logger.addHandler((Handler) logHandler);
}
julHandlerField.setAccessible(true);
return (ILttngHandler) julHandlerField.get(LTTngAgent.getLTTngAgent());
} catch (ReflectiveOperationException | SecurityException e) {
- fail();
+ fail(e.getMessage());
return null;
}
}
try {
handler = new LttngLogHandler();
} catch (SecurityException | IOException e) {
- fail();
+ fail(e.getMessage());
}
logger.addHandler(handler);
}
try {
logHandler = new LttngLogAppender();
} catch (SecurityException | IOException e) {
- fail();
+ fail(e.getMessage());
}
logger.addAppender((Appender) logHandler);
}
log4jAppenderField.setAccessible(true);
return (ILttngHandler) log4jAppenderField.get(LTTngAgent.getLTTngAgent());
} catch (ReflectiveOperationException | SecurityException e) {
- fail();
+ fail(e.getMessage());
return null;
}
}
try {
appender = new LttngLogAppender();
} catch (SecurityException | IOException e) {
- fail();
+ fail(e.getMessage());
}
logger.addAppender(appender);
}