using logger.exception to get more info about error instead of logger.error