Use trace! for cosmetic filter logging
Some checks failed
continuous-integration/drone the build failed

This commit is contained in:
Olivier 'reivilibre' 2022-03-28 23:43:10 +01:00
parent 68b7c76d1e
commit e6a402af19

View File

@ -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();