From e6a402af19e9d0503c258154925cc9c28570b31d Mon Sep 17 00:00:00 2001 From: Olivier 'reivilibre Date: Mon, 28 Mar 2022 23:43:10 +0100 Subject: [PATCH] Use trace! for cosmetic filter logging --- quickpeep_raker/src/raking/analysis.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quickpeep_raker/src/raking/analysis.rs b/quickpeep_raker/src/raking/analysis.rs index 59b0460..3dcd4fa 100644 --- a/quickpeep_raker/src/raking/analysis.rs +++ b/quickpeep_raker/src/raking/analysis.rs @@ -5,7 +5,7 @@ use html5ever::QualName; use ipnetwork::IpNetwork; use kuchiki::{ElementData, NodeData, NodeRef}; use lingua::Language; -use log::debug; +use log::{debug, trace}; use reqwest::Url; use std::collections::{BTreeSet, HashMap, HashSet}; use std::net::IpAddr; @@ -108,7 +108,7 @@ pub fn analyse_with_ad_block_cosmetic_filter( for rule in itertools::chain(specialist_hide_selectors, url_resources.hide_selectors) { if let Ok(result) = root.select(&rule) { for ele in result { - eprintln!("Cosmetic Filter {:?} Matches {:?}", rule, ele); + trace!("Cosmetic Filter {:?} Matches {:?}", rule, ele); matches += 1; if remove { ele.as_node().detach();