SamuelYvon / netifaces-2

netifaces reborn
https://pypi.org/project/netifaces2/
MIT License
21 stars 7 forks source link

Logging settings should not be changed on import #20

Closed bmerry closed 7 months ago

bmerry commented 7 months ago

netifaces2 calls logging.basicConfig on import here. That will interfere with log setup by the application. Note that logging.basicConfig does nothing the second time it is called, so if an application uses logging.basicConfig for its own logging setup and switches from netifaces to netifaces2, it will silently break the logging setup.

SamuelYvon commented 7 months ago

You are correct. Fixing

SamuelYvon commented 7 months ago

Fixed in >=0.0.19.

Thanks for reporting!