Closed rrnicolay closed 1 year ago
Ok, found the problem. Everything is fine with ina219 lib.
The problem is that the I2C library gets the root logger, which is in DEBUG level (in my case).
Solved it with:
logging.getLogger('Adafruit_I2C.Device.Bus.1.Address.0X40').setLevel(logging.WARNING)
I have a logging configuration file which is:
My code:
No matter what I do, the module is always in debug level. How can I force Ina219 to use the specified logging level instead of the one in the logging file?