axelarnetwork / tofn

A threshold cryptography library in Rust
Apache License 2.0
112 stars 23 forks source link

Emit logs #19

Closed sdaveas closed 3 years ago

sdaveas commented 3 years ago

These logs are captured by executables that call tofn and implement a subscriber (such as tofnd). At this point, tests won't be able to capture log events. If we want to do that, we need to import tracing-subscriber = "0.2" and use tracing_subscriber::fmt::init() inside each test.

Furthermore, prints inside tests are not changed into logs.