remove log crate (in favor of tracing)
All checks were successful
CI/CD Pipeline / test (push) Successful in 2m9s
All checks were successful
CI/CD Pipeline / test (push) Successful in 2m9s
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user