Closed DmytroTym closed 3 years ago
You're right, it's quite inconvenient. We're currently working on major revision of this crate, and a new simulation already has no printing. However, if you'd like to fix current version, PR is more than welcome!
I did a quick PR, changing printins to debugs: https://github.com/ZenGo-X/round-based-protocol/pull/6 I now see the limitations of this approach: it's pretty hard to set log level in tests :( Still, maybe it works as a temporary measure?
@DmytroTym a new version with your changes is published!
In
simulation.rs
, methodsproceed_if_needed
andhandle_incoming
print a lot, especially if the number of parties is large. This is done viaprintln!
and thus not very configurable, complicating debug, testing and benchmarking. Maybe we can useinfo!
ordebug!
instead? I can make a PR for this