Skip to content

Commit

Permalink
fix: Feature flag slog_json working again
Browse files Browse the repository at this point in the history
  • Loading branch information
jbencin committed Jan 3, 2025
1 parent 7a15524 commit 8d33529
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions stacks-common/src/util/log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@ impl<D: Decorator> TermFormat<D> {

#[cfg(feature = "slog_json")]
fn make_json_logger() -> Logger {
use std::sync::Mutex;

use slog::FnValue;

let def_keys = o!("file" => FnValue(move |info| {
info.file()
}),
Expand Down

0 comments on commit 8d33529

Please sign in to comment.