Log the stacktrace and not just the message of the exception.