Calling logging.basicConfig() in __init__.py is problematic for a library because it runs the moment anyone does import cocoindex_code. This silently configures the root logger for the entire Python process, which can interfere with logging setups in applications that use this library as a dependency.
The daemon already sets up logging correctly in daemon.py when it starts, so this call in __init__.py is both premature and unnecessary.
i will like to impliment this fix;
After fixing on my local machine and running the test, it passed successfully without breaking
Calling
logging.basicConfig()in__init__.pyis problematic for a library because it runs the moment anyone does import cocoindex_code. This silently configures the root logger for the entire Python process, which can interfere with logging setups in applications that use this library as a dependency.The daemon already sets up logging correctly in daemon.py when it starts, so this call in
__init__.pyis both premature and unnecessary.i will like to impliment this fix;
After fixing on my local machine and running the test, it passed successfully without breaking