Skip to content

Commit

Permalink
chore: convert some logs to debug (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeDecMeetsMore authored Nov 26, 2024
1 parent a090501 commit 2bae6a5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions crates/api/src/shared/usecase.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::fmt::Debug;

use futures::future::join_all;
use nittei_infra::NitteiContext;
use tracing::{info, warn};
use tracing::{debug, warn};

use super::auth::{Permission, Policy};
use crate::error::NitteiError;
Expand Down Expand Up @@ -95,7 +95,7 @@ where
U: UseCase,
U::Error: Debug,
{
info!("{:?}", usecase);
debug!("{:?}", usecase);
let res = usecase.execute(ctx).await;

match &res {
Expand All @@ -108,7 +108,8 @@ where
join_all(subscriber_promises).await;
}
Err(e) => {
warn!("Error: {:?}", e);
// This is debug because the error is usually already logged deeper in the stack
debug!("Error: {:?}", e);
}
}

Expand Down

0 comments on commit 2bae6a5

Please sign in to comment.