Skip to content

Commit a18a0ee

Browse files
filhocfgeorgeh0
andauthored
fix: remove logging.basicConfig from __init__.py (#155)
* fix: remove logging.basicConfig from __init__.py Calling logging.basicConfig() at import time configures the root logger for the entire Python process, which interferes with logging setups in applications that use cocoindex-code as a dependency. Libraries should not configure the root logger — that is the application's responsibility. Closes #124 * Update __init__.py --------- Co-authored-by: Jiangzhou <jiangzhou@cocoindex.io>
1 parent c98f8cc commit a18a0ee

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/cocoindex_code/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
from __future__ import annotations
44

5-
import logging
65
import os
76
from typing import TYPE_CHECKING, Any
87

@@ -11,8 +10,6 @@
1110
# init time). See cocoindex-io/cocoindex#1992.
1211
os.environ.setdefault("COCOINDEX_APPLICATION_FOR_TRACKING", "cocoindex-code")
1312

14-
logging.basicConfig(level=logging.WARNING)
15-
1613
from ._version import __version__ # noqa: E402
1714

1815
if TYPE_CHECKING:

0 commit comments

Comments
 (0)