When an exception occurs and is catched in an try catch block the LOGGER.error(msg,e) call does not show the stacktrace.
If LOGGER.error(msg,e) is called in a try catch block the stacktrace should be shown.