From fac9f2ebdb5c98b65b64f06dbe621253580ebffe Mon Sep 17 00:00:00 2001 From: Olivier 'reivilibre Date: Sun, 27 Mar 2022 22:47:15 +0100 Subject: [PATCH] Make cosmetic filter output use the logging system --- quickpeep_raker/src/raking/page_extraction.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/quickpeep_raker/src/raking/page_extraction.rs b/quickpeep_raker/src/raking/page_extraction.rs index 51175b3..fc0e548 100644 --- a/quickpeep_raker/src/raking/page_extraction.rs +++ b/quickpeep_raker/src/raking/page_extraction.rs @@ -7,7 +7,7 @@ use anyhow::{bail, Context}; use html5ever::tendril::TendrilSink; use itertools::Itertools; use kuchiki::NodeRef; -use log::{debug, warn}; +use log::{debug, error, warn}; use quickpeep_densedoc::{DenseDocument, DenseHead, DenseTree}; use quickpeep_structs::rake_entries::AnalysisAntifeatures; use quickpeep_utils::lazy::Lazy; @@ -171,11 +171,11 @@ impl PageExtractionServiceInternal { true, ) { Ok(cosmetic_filters_tripped) => { - eprintln!("?cosmetic filters tripped: {}", cosmetic_filters_tripped); + debug!("?cosmetic filters tripped: {}", cosmetic_filters_tripped); antifeature_flags |= *engine_antifeature_flag; } Err(err) => { - eprintln!("Cosmetic Filter Err {:?}", err); + error!("Cosmetic Filter Err {:?}", err); } }; }