Make cosmetic filter output use the logging system
This commit is contained in:
parent
791fa8c4ee
commit
fac9f2ebdb
|
@ -7,7 +7,7 @@ use anyhow::{bail, Context};
|
||||||
use html5ever::tendril::TendrilSink;
|
use html5ever::tendril::TendrilSink;
|
||||||
use itertools::Itertools;
|
use itertools::Itertools;
|
||||||
use kuchiki::NodeRef;
|
use kuchiki::NodeRef;
|
||||||
use log::{debug, warn};
|
use log::{debug, error, warn};
|
||||||
use quickpeep_densedoc::{DenseDocument, DenseHead, DenseTree};
|
use quickpeep_densedoc::{DenseDocument, DenseHead, DenseTree};
|
||||||
use quickpeep_structs::rake_entries::AnalysisAntifeatures;
|
use quickpeep_structs::rake_entries::AnalysisAntifeatures;
|
||||||
use quickpeep_utils::lazy::Lazy;
|
use quickpeep_utils::lazy::Lazy;
|
||||||
|
@ -171,11 +171,11 @@ impl PageExtractionServiceInternal {
|
||||||
true,
|
true,
|
||||||
) {
|
) {
|
||||||
Ok(cosmetic_filters_tripped) => {
|
Ok(cosmetic_filters_tripped) => {
|
||||||
eprintln!("?cosmetic filters tripped: {}", cosmetic_filters_tripped);
|
debug!("?cosmetic filters tripped: {}", cosmetic_filters_tripped);
|
||||||
antifeature_flags |= *engine_antifeature_flag;
|
antifeature_flags |= *engine_antifeature_flag;
|
||||||
}
|
}
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
eprintln!("Cosmetic Filter Err {:?}", err);
|
error!("Cosmetic Filter Err {:?}", err);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue