To make sure the full stacktrace is printed out, use the logging statement with 2 arguments: a String and a Throwable.