Rather than logging this as two messages, use `log.exception` to log both a message and the stack trace of the exception.