Skip to content

Commit 1636d9a

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 dddb821 commit 1636d9a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)