Skip to content

Commit

Permalink
refactor(http): replace println with shlog_error for error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
sinkingsugar committed Jan 18, 2025
1 parent fd31256 commit 4d442ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shards/modules/http/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ use std::collections::HashMap;
use std::sync::{Arc, Mutex};

fn print_error(e: &dyn std::error::Error) {
println!("Error: {}", e);
shlog_error!("Error: {}", e);
let mut source = e.source();
while let Some(e) = source {
println!("Caused by: {}", e);
shlog_error!("Caused by: {}", e);
source = e.source();
}
}
Expand Down

0 comments on commit 4d442ba

Please sign in to comment.