Fixed error in logger.js