Skip to content

Commit

Permalink
fix: error log on module startup
Browse files Browse the repository at this point in the history
  • Loading branch information
David-Petrov committed Aug 7, 2024
1 parent db4308e commit 584d662
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/builder_log/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ async fn main() {
}
}
Err(err) => {
error!(?err, "Failed to load module config");
eprintln!("Failed to load module config: {err:?}");
}
}
}
3 changes: 1 addition & 2 deletions examples/da_commit/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@ async fn main() -> Result<()> {
}
}
Err(err) => {
// FIXME: This trace will never be shown since tracing log is not initialized here.
error!(?err, "Failed to load module config");
eprintln!("Failed to load module config: {err:?}");
}
}
Ok(())
Expand Down

0 comments on commit 584d662

Please sign in to comment.