想要屏蔽掉reqwest的日志,但是设置envfilter不起作用。大佬帮忙看看
let local_time = OffsetTime::new(
            UtcOffset::from_hms(8, 0, 0).unwrap(),
            format_description!("[year]-[month]-[day] [hour]:[minute]:[second].[subsecond digits:3]"),
        );
        let env_filter = EnvFilter::builder().parse("reqwest=warn").unwrap();
        let fmt = tracing_subscriber::fmt()
        .with_env_filter(env_filter)
        .with_thread_names(true)
        .with_timer(local_time);
	    
	    
		1
	    
	    
	    共 2 条评论, 1 页
	
	
    
评论区
写评论已经解决
需要过滤tracing的日志需要几个条件
加个 init()