Replace rospy warning by logging.warning