Skip to content

Commit

Permalink
Merge pull request #1036 from jarod/fix/logger_file_appender
Browse files Browse the repository at this point in the history
fix: logger file_appender not using the seperated format setting
  • Loading branch information
jondot authored Dec 1, 2024
2 parents e1b0392 + 612e2ae commit 76fcf48
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 76fcf48

Please sign in to comment.