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 17, 2023
1 parent ad39715 commit 93e94a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

### Fixed

- Fixed a bug that prevented the `--show-log-origin` option from working.

## [1.5.0]

### Added
Expand Down
2 changes: 1 addition & 1 deletion src/firecracker/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,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 93e94a0

Please sign in to comment.