Refactor logger.info call