Skip to content

Commit

Permalink
Add log for file and line number (#933)
Browse files Browse the repository at this point in the history
  • Loading branch information
penumbra23 authored Jun 18, 2024
1 parent 1214eb6 commit bafa1e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chronicle/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ impl ChronicleArgs {
async fn main() -> Result<()> {
tracing_subscriber::fmt()
.with_max_level(tracing::Level::DEBUG)
.with_file(true)
.with_line_number(true)
.with_env_filter(tracing_subscriber::EnvFilter::from_default_env())
.init();
std::panic::set_hook(Box::new(tracing_panic::panic_hook));
Expand Down

0 comments on commit bafa1e9

Please sign in to comment.