From 23514aff9e9ea3dea28b2a8a9fbc207b92d81d52 Mon Sep 17 00:00:00 2001 From: Jan Lukas Gernert Date: Mon, 27 Jan 2020 02:03:06 +0100 Subject: [PATCH] less dramatic logging --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index f55315e..0933fc8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -230,14 +230,14 @@ impl ArticleScraper { thorw_if_empty: bool, ) -> Result, ScraperError> { let res = xpath_ctx.evaluate(xpath).map_err(|()| { - error!("Evaluation of xpath '{}' yielded no results", xpath); + debug!("Evaluation of xpath '{}' yielded no results", xpath); ScraperErrorKind::Xml })?; let node_vec = res.get_nodes_as_vec(); if node_vec.len() == 0 { - error!("Evaluation of xpath '{}' yielded no results", xpath); + debug!("Evaluation of xpath '{}' yielded no results", xpath); if thorw_if_empty { return Err(ScraperErrorKind::Xml)?; }