Skip to content

Commit 13f9c6c

Browse files
authored
fix(profiling): add logging in profling.auto (DataDog#3134)
Added a log debug statement in ddtrace.profiling.auto to log if the profiler has been enabled automatically on module import.
1 parent 86965b6 commit 13f9c6c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ddtrace/profiling/auto.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
"""Automatically starts a collector when imported."""
2+
from ddtrace.internal.logger import get_logger
23
from ddtrace.profiling.bootstrap import sitecustomize # noqa
34

45

6+
log = get_logger(__name__)
7+
log.debug("Enabling the profiler by auto import")
8+
59
start_profiler = sitecustomize.start_profiler

0 commit comments

Comments
 (0)