feat: add tracing
This commit is contained in:
parent
ab599206c5
commit
1d1dcd622f
24 changed files with 146 additions and 68 deletions
|
|
@ -2,6 +2,7 @@ use std::borrow::Cow;
|
|||
|
||||
use once_cell::sync::Lazy;
|
||||
use regex::Regex;
|
||||
use tracing::debug;
|
||||
|
||||
use crate::{
|
||||
client::response::url_endpoint::NavigationEndpoint,
|
||||
|
|
@ -29,7 +30,7 @@ impl RustyPipeQuery {
|
|||
let res = self._music_artist(artist_id, all_albums).await;
|
||||
|
||||
if let Err(Error::Extraction(ExtractionError::Redirect(id))) = res {
|
||||
log::debug!("music artist {} redirects to {}", artist_id, &id);
|
||||
debug!("music artist {} redirects to {}", artist_id, &id);
|
||||
self._music_artist(&id, all_albums).await
|
||||
} else {
|
||||
res
|
||||
|
|
|
|||
Reference in a new issue