Fixing warning logger.