Skip to content

Commit

Permalink
fix: add console filters for json logs (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
NishantJoshi00 authored Jan 6, 2025
1 parent a5351d2 commit 890c9e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/logger/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ pub fn setup(
}
config::LogFormat::Json => {
error_stack::Report::set_color_mode(error_stack::fmt::ColorMode::None);
let logging_layer = FormattingLayer::new(service_name, console_writer);
let logging_layer =
FormattingLayer::new(service_name, console_writer).with_filter(console_filter);
subscriber.with(logging_layer).init();
}
}
Expand Down

0 comments on commit 890c9e6

Please sign in to comment.