use of org.graylog2.plugin.IOState in project graylog2-server by Graylog2.
the class InputLauncher method handleLaunchException.
protected void handleLaunchException(Throwable e, IOState<MessageInput> inputState) {
final MessageInput input = inputState.getStoppable();
StringBuilder msg = new StringBuilder("The [" + input.getClass().getCanonicalName() + "] input with ID <" + input.getId() + "> misfired. Reason: ");
String causeMsg = ExceptionUtils.getRootCauseMessage(e);
msg.append(causeMsg);
LOG.error(msg.toString(), e);
// Clean up.
// cleanInput(input);
inputState.setState(IOState.Type.FAILED, causeMsg);
}
Aggregations