mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 01:27:31 +08:00
refactor: disable color in reports in json format (#2509)
This commit is contained in:
@ -101,6 +101,7 @@ pub fn setup(
|
||||
subscriber.with(logging_layer).init();
|
||||
}
|
||||
config::LogFormat::Json => {
|
||||
error_stack::Report::set_color_mode(error_stack::fmt::ColorMode::None);
|
||||
let logging_layer =
|
||||
FormattingLayer::new(service_name, console_writer).with_filter(console_filter);
|
||||
subscriber.with(logging_layer).init();
|
||||
|
||||
Reference in New Issue
Block a user