Changed warn messages to log level