Only have the logger.log call once inside logger.log