Get rid of deprecated logging.warn()