Skip to content

Commit 71d2ab4

Browse files
kasiumocelotl
andauthored
Change log of detach error to exception (#2774)
Co-authored-by: Diego Hurtado <[email protected]>
1 parent 4d61501 commit 71d2ab4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opentelemetry-api/src/opentelemetry/context/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def detach(token: object) -> None:
156156
try:
157157
_RUNTIME_CONTEXT.detach(token) # type: ignore
158158
except Exception: # pylint: disable=broad-except
159-
logger.error("Failed to detach context")
159+
logger.exception("Failed to detach context")
160160

161161

162162
# FIXME This is a temporary location for the suppress instrumentation key.

0 commit comments

Comments
 (0)