Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b70516c

Browse files
committedMar 31, 2025··
Address PR feedback
1 parent e3f42c1 commit b70516c

File tree

1 file changed

+1
-2
lines changed
  • opentelemetry-sdk/src/opentelemetry/sdk/_configuration

1 file changed

+1
-2
lines changed
 

‎opentelemetry-sdk/src/opentelemetry/sdk/_configuration/__init__.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,7 @@ def patched_basic_config(*args, **kwargs):
271271
root.handlers[0], LoggingHandler
272272
)
273273
if has_only_otel:
274-
otel_handler = root.handlers[0]
275-
root.handlers = []
274+
otel_handler = root.handlers.pop()
276275
original_basic_config(*args, **kwargs)
277276
root.addHandler(otel_handler)
278277
else:

0 commit comments

Comments
 (0)
Please sign in to comment.