fix: set tracing instrumentation level to Error

This commit is contained in:
ThetaDev 2024-08-10 00:06:56 +02:00
parent 904f8215d8
commit 9da3b25be2
No known key found for this signature in database
GPG key ID: E319D3C5148D65B6
16 changed files with 35 additions and 35 deletions

View file

@ -16,7 +16,7 @@ use super::{
impl RustyPipeQuery {
/// Get the videos from the YouTube startpage
#[tracing::instrument(skip(self))]
#[tracing::instrument(skip(self), level = "error")]
pub async fn startpage(&self) -> Result<Paginator<VideoItem>, Error> {
let context = self.get_context(ClientType::Desktop, true, None).await;
let request_body = QBrowse {
@ -35,7 +35,7 @@ impl RustyPipeQuery {
}
/// Get the videos from the YouTube trending page
#[tracing::instrument(skip(self))]
#[tracing::instrument(skip(self), level = "error")]
pub async fn trending(&self) -> Result<Vec<VideoItem>, Error> {
let context = self.get_context(ClientType::Desktop, true, None).await;
let request_body = QBrowseParams {