Skip to content

Commit 8190a76

Browse files
committed
use disable_logging flag to disable info logs
1 parent 81cad06 commit 8190a76

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/langtrace_python_sdk/langtrace.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,9 @@ def init(
214214
disable_logging: bool = False,
215215
headers: Dict[str, str] = {},
216216
):
217-
logging.disable(level=logging.INFO)
217+
if disable_logging:
218+
logging.disable(level=logging.INFO)
219+
218220
check_if_sdk_is_outdated()
219221
config = LangtraceConfig(
220222
api_key=api_key,

0 commit comments

Comments
 (0)