Skip to content

Commit b25e1dc

Browse files
committed
remove duplication
1 parent 8190a76 commit b25e1dc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/langtrace_python_sdk/langtrace.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,6 @@ def init(
214214
disable_logging: bool = False,
215215
headers: Dict[str, str] = {},
216216
):
217-
if disable_logging:
218-
logging.disable(level=logging.INFO)
219217

220218
check_if_sdk_is_outdated()
221219
config = LangtraceConfig(
@@ -232,6 +230,7 @@ def init(
232230
)
233231

234232
if config.disable_logging:
233+
logging.disable(level=logging.INFO)
235234
sys.stdout = open(os.devnull, "w")
236235

237236
host = get_host(config)

0 commit comments

Comments
 (0)