only have the logger.log call once inside logger.log
Merge pull request #430 from prashn64/logger-fix

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