Skip to content

Commit 3376c7e

Browse files
authored
chore(internal): reduce log volume from core api (#6886) [backport 1.19] (#6889)
This change reduces the very large amount of debug logs that the Core API can generate in the course of normal usage, especially with AppSec enabled. ## Checklist - [x] Change(s) are motivated and described in the PR description. - [x] Testing strategy is described if automated tests are not included in the PR. - [x] Risk is outlined (performance impact, potential for breakage, maintainability, etc). - [x] Change is maintainable (easy to change, telemetry, documentation). - [x] [Library release note guidelines](https://ddtrace.readthedocs.io/en/stable/releasenotes.html) are followed. If no release note is required, add label `changelog/no-changelog`. - [x] Documentation is included (in-code, generated user docs, [public corp docs](https://github.com/DataDog/documentation/)). - [x] Backport labels are set (if [applicable](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting))
1 parent abaf117 commit 3376c7e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

ddtrace/internal/core.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,9 @@ def dispatch(self, event_id, args, *other_args):
160160
"must be passed in a list. For example, use dispatch('foo', [[l1, l2], arg2]) "
161161
"instead of dispatch('foo', [l1, l2], arg2)."
162162
)
163-
log.debug("Dispatching event %s", event_id)
164163
results = []
165164
exceptions = []
166165
for listener in self._listeners.get(event_id, []):
167-
log.debug("Calling listener %s", listener)
168166
result = None
169167
exception = None
170168
try:
@@ -261,7 +259,6 @@ def get_item(self, data_key):
261259
# NB mimic the behavior of `ddtrace.internal._context` by doing lazy inheritance
262260
current = self
263261
while current is not None:
264-
log.debug("Checking context '%s' for data at key '%s'", current.identifier, data_key)
265262
if data_key in current._data:
266263
return current._data.get(data_key)
267264
current = current.parent

0 commit comments

Comments
 (0)