log.exception instead of log.critical to retrieve the actual error