Skip to content

Instantly share code, notes, and snippets.

@fritz-gerneth
Created November 21, 2013 10:01
Show Gist options
  • Save fritz-gerneth/7578984 to your computer and use it in GitHub Desktop.
Save fritz-gerneth/7578984 to your computer and use it in GitHub Desktop.
if ((log != null) && (log.isErrorEnabled())) {
log.error("Critical error in controlcycle of agent: " + getAgentName() + ". Stopping Agent! Exception: ", e);
} else {
System.err.println("Critical error in controlcycle of agent: " + getAgentName()
+ ". Stopping Agent. Exception: ");
e.printStackTrace();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment