Change logged error to include the Exception object

This will enable a stack trace to be recorded in the log.