When logging an exception, make sure to include the stack trace. Otherwise pertinent debug information is lost.