I'm using Cassandra's Python driver (3.16).
Cassandra spits out a ton of non-essential WARNING logs that clog up my terminal. How can I disable them in my python project?
Python logging is by modules or classes as we call it outside python.
You can disable logging on a module level using this command:
logging.getLogger('cassandra').setLevel(logging.ERROR)
This will set the logging level to ERROR and will not print logs with level below ERROR.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With