fix call to logger.exception()