Fix missing "warn" method in logger.