Skip to content

Commit

Permalink
add json trace config (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukejmann authored Nov 29, 2023
1 parent 0214d30 commit 9ba7f74
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
20 changes: 20 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ tower-http = { version = "0.4.3", features = ["cors"] }
uuid = { version = "1.4.1", features = ["v4", "serde"] }
redis = { version = "0.23.0", features = ["tokio-comp", "connection-manager", "tokio-native-tls-comp"] }
tracing-subscriber = { version = "0.3", default-features = false, features = [
"fmt",
"fmt","json"
] }
serde_path_to_error = "0.1.14"
async-trait = "0.1.74"
Expand Down
3 changes: 3 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ async fn main() {

tracing_subscriber::fmt()
.with_max_level(tracing::Level::INFO)
.json()
.with_target(false)
.flatten_event(true)
.without_time()
.init();

tracing::info!("Starting wallet bridge...");
Expand Down

0 comments on commit 9ba7f74

Please sign in to comment.