refactor: use Debug impl instead of Display impl for logging errors (#5301)

This commit is contained in:
Sanchith Hegde
2024-07-12 13:21:22 +05:30
committed by GitHub
parent d65d7b5cca
commit e835706ad6
27 changed files with 192 additions and 153 deletions

View File

@ -154,13 +154,13 @@ impl Handler {
pub async fn redis_error_receiver(rx: oneshot::Receiver<()>, shutdown_channel: mpsc::Sender<()>) {
match rx.await {
Ok(_) => {
logger::error!("The redis server failed ");
logger::error!("The redis server failed");
let _ = shutdown_channel.send(()).await.map_err(|err| {
logger::error!("Failed to send signal to the shutdown channel {err}")
});
}
Err(err) => {
logger::error!("Channel receiver error{err}");
logger::error!("Channel receiver error {err}");
}
}
}