Skip to content

Commit

Permalink
fix: logger file_appender not using the seperated format setting
Browse files Browse the repository at this point in the history
  • Loading branch information
jarod committed Nov 28, 2024
1 parent e1b0392 commit 612e2ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/logger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ pub fn init<H: Hooks>(config: &config::Logger) {
let (non_blocking_file_appender, work_guard) =
tracing_appender::non_blocking(file_appender);
NONBLOCKING_WORK_GUARD_KEEP.set(work_guard).unwrap();
init_layer(non_blocking_file_appender, &config.format, false)
init_layer(non_blocking_file_appender, &file_appender_config.format, false)
} else {
init_layer(file_appender, &config.format, false)
init_layer(file_appender, &file_appender_config.format, false)
};
layers.push(file_appender_layer);
}
Expand Down

0 comments on commit 612e2ae

Please sign in to comment.