Skip to content

Commit

Permalink
fix(console): fix build error with journald enabled
Browse files Browse the repository at this point in the history
Signed-off-by: Eliza Weisman <eliza@buoyant.io>
  • Loading branch information
hawkw committed Jan 6, 2022
1 parent 24f25db commit a931b7e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion console/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ impl Config {
#[cfg(all(feature = "tracing-journald", target_os = "linux"))]
let (journald, should_fmt) = {
let journald = tracing_journald::layer().ok();
(journald, journald.is_some())
let should_fmt = journald.is_none();
(journald, should_fmt)
};

#[cfg(not(all(feature = "tracing-journald", target_os = "linux")))]
Expand Down

0 comments on commit a931b7e

Please sign in to comment.