Skip to content

Remove logging.basicConfig from package __init__ #124

@adeyemijosh

Description

@adeyemijosh

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions