Skip to content

Commit

Permalink
Fix custom tracing b58 printing (#823)
Browse files Browse the repository at this point in the history
* Fix custom tracing b58 printing

* Fix cargo.toml
  • Loading branch information
macpie authored Jun 7, 2024
1 parent fa80db4 commit 315cb85
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

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

17 changes: 9 additions & 8 deletions custom_tracing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,23 @@ license.workspace = true
edition.workspace = true

[dependencies]
serde = { version = "1", features = ["derive"] }
notify = { version = "6", default-features = false }
anyhow = "1"
axum = { version = ">=0.7", features = ["tracing"], optional = true }
bs58 = { workspace = true }
helium-crypto = { workspace = true }
helium-proto = { workspace = true, optional = true }
http = { workspace = true, optional = true }
notify = { version = "6", default-features = false }
serde = { version = "1", features = ["derive"] }
tokio = { version = "1", features = ["rt-multi-thread", "sync", "signal"] }
tower-http = { version = "0", features = ["trace"] }
tower-layer = { version = "0" }
tracing = "0"
tracing-subscriber = { version = "0", default-features = true, features = [
"env-filter",
"registry",
"fmt",
] }
tower-http = { version = "0", features = ["trace"] }
tower-layer = { version = "0" }
axum = { version = "0.7", features = ["tracing"], optional = true }
helium-proto = { workspace = true, optional = true }
http = { workspace = true, optional = true }
bs58 = { version = "0.4", features = ["check"] }


[target.'cfg(target_os = "macos")'.dependencies]
Expand Down
3 changes: 2 additions & 1 deletion custom_tracing/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use anyhow::Result;
use helium_crypto::PublicKeyBinary;
use notify::{event::DataChange, Config, RecommendedWatcher, RecursiveMode, Watcher};
mod settings;
pub use settings::Settings;
Expand Down Expand Up @@ -54,7 +55,7 @@ where
}

pub fn record_b58(key: &str, pub_key: &[u8]) {
let b58 = bs58::encode(pub_key).into_string();
let b58 = PublicKeyBinary::from(pub_key).to_string();

record(key, b58);
}
Expand Down

0 comments on commit 315cb85

Please sign in to comment.