logging.warn is still deprecated