Open onikonychev opened 2 years ago
What I'd do for this behavior is use argparse
from the standard library and add a flag for --log
or --loglevel
that adjusts the logging.basicConfig
. That way, you can customize whether you want to see the DEBUG, INFO, and WARNING statements on different runs.
Another option could be that we add an argument, log_level
to the constructor for the nibiru.Sdk
object. Then, you'd be able to adjust it at the program level when you initialize the Sdk
.
I'm in favor of implementing both of these, tbh
Here and there in liquidator and heart-monitor some unexpected py-sdk messages are appearinng:
Need to make sdk and app logging consistent and have an ability to turn off DEBUG if it's not intentionally on.