Use trace! for cosmetic filter logging
Some checks failed
continuous-integration/drone the build failed
Some checks failed
continuous-integration/drone the build failed
This commit is contained in:
parent
68b7c76d1e
commit
e6a402af19
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user