More error fixes in logger.js