Skip to content

Commit

Permalink
Merge pull request #3211 from Bravo555/improve/log-line-numbers
Browse files Browse the repository at this point in the history
Enable line numbers for logs when using RUST_LOG
  • Loading branch information
Bravo555 authored Oct 29, 2024
2 parents ad03ca3 + 8dc671b commit 422d710
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/common/tedge_config/src/system_services/log_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ pub fn log_init(
if std::env::var("RUST_LOG").is_ok() {
subscriber
.with_env_filter(tracing_subscriber::EnvFilter::from_default_env())
.with_file(true)
.with_line_number(true)
.init();
return Ok(());
}
Expand Down

0 comments on commit 422d710

Please sign in to comment.