Skip to content

Commit

Permalink
fix: option --show-log-origin does not work
Browse files Browse the repository at this point in the history
show-log-origin was turned on by the --show-level option

Use the correct flag to enable it.

Fixes: 332f218

Signed-off-by: Pablo Barbáchano <pablob@amazon.com>
  • Loading branch information
pb8o committed Oct 12, 2023
1 parent 36a067d commit 20f1c4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/firecracker/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ fn main_exec() -> Result<(), MainError> {
.transpose()
.map_err(MainError::InvalidLogLevel)?;
let show_level = arguments.flag_present("show-level").then_some(true);
let show_log_origin = arguments.flag_present("show-level").then_some(true);
let show_log_origin = arguments.flag_present("show-log-origin").then_some(true);
LOGGER
.update(LoggerConfig {
log_path,
Expand Down

0 comments on commit 20f1c4a

Please sign in to comment.