Skip to content

Commit 5fd729b

Browse files
committed
fix: Logging stacklevel for Python >= 3.14.0.
Reverting commit e57ab45 as closing the final release of Python 3.14.0. Signed-off-by: Paulo Vital <paulo.vital@ibm.com>
1 parent 4a56ca7 commit 5fd729b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/instana/instrumentation/logging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def log_with_instana(
3131
stacklevel_in = kwargs.pop(
3232
"stacklevel", 1 if get_runtime_env_info()[0] not in ["ppc64le", "s390x"] else 2
3333
)
34-
stacklevel = stacklevel_in + 1 + (sys.version_info >= (3, 14))
34+
stacklevel = stacklevel_in + 1
3535

3636
try:
3737
# Only needed if we're tracing and serious log and logging spans are not disabled

0 commit comments

Comments
 (0)