Skip to content

Commit 8c56527

Browse files
authored
Merge pull request #400 from Scale3-Labs/ali/enable-logging
use `disable_logging` to disable info logs
2 parents 28c24fd + b25e1dc commit 8c56527

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/langtrace_python_sdk/langtrace.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def init(
214214
disable_logging: bool = False,
215215
headers: Dict[str, str] = {},
216216
):
217-
logging.disable(level=logging.INFO)
217+
218218
check_if_sdk_is_outdated()
219219
config = LangtraceConfig(
220220
api_key=api_key,
@@ -230,6 +230,7 @@ def init(
230230
)
231231

232232
if config.disable_logging:
233+
logging.disable(level=logging.INFO)
233234
sys.stdout = open(os.devnull, "w")
234235

235236
host = get_host(config)

0 commit comments

Comments
 (0)