remove log crate (in favor of tracing)
All checks were successful
CI/CD Pipeline / test (push) Successful in 2m9s

This commit is contained in:
2024-02-27 15:24:39 +01:00
parent b4d464506c
commit 2f077a447c
10 changed files with 41 additions and 69 deletions

View File

@@ -25,8 +25,6 @@ use std::{
path::Path,
};
use log::info;
use crate::{
law,
misc::{fetch_with_retries, get_cache_dir, Error},
@@ -126,7 +124,6 @@ impl Parser {
/// );
/// ```
pub fn parse(&self, url: &str, builder: &mut law::Builder) -> Result<bool, Error> {
info!("Parsing {url}");
let xml = fetch(url)?;
let xml = xml.replace('\u{a0}', " ");
@@ -193,7 +190,6 @@ fn fetch(url: &str) -> Result<String, Error> {
if let Ok(data) = fs::read_to_string(&expected_filename) {
Ok(data)
} else {
info!("Not finding url {url} in the cache, downloading...");
let data = fetch_with_retries(url)?;
let path = Path::new(&expected_filename);
if let Some(parent) = path.parent() {