Skip to content

Commit 56bf4d5

Browse files
committed
fix: option --show-log-origin has no effect
show-log-origin was turned on by the --show-level option. Use the correct flag to enable it. Fixes: 332f218 (cherry picked from commit 22eb608) Signed-off-by: Pablo Barbáchano <[email protected]>
1 parent 8fb7a7c commit 56bf4d5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
### Fixed
1313

14+
- Fixed a bug that ignored the `--show-log-origin` option, preventing it from
15+
printing the source code file of the log messages.
1416
- [#4179](https://github.com/firecracker-microvm/firecracker/pull/4179):
1517
Fixed a bug reporting a non-zero exit code on successful shutdown when
1618
starting Firecracker with `--no-api`.

src/firecracker/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ fn main_exec() -> Result<(), MainError> {
279279
.transpose()
280280
.map_err(MainError::InvalidLogLevel)?;
281281
let show_level = arguments.flag_present("show-level").then_some(true);
282-
let show_log_origin = arguments.flag_present("show-level").then_some(true);
282+
let show_log_origin = arguments.flag_present("show-log-origin").then_some(true);
283283
LOGGER
284284
.update(LoggerConfig {
285285
log_path,

0 commit comments

Comments
 (0)