Change logged error to include the Exception object so that a stack
trace will be recorded in the log.