Skip to content

Commit a6a2f93

Browse files
authored
Add log message when DedupeIntegration is dropping an error. (#4788)
Make it clearer for the user what is happening. resolves: PY-1840
1 parent 94a92d8 commit a6a2f93

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sentry_sdk/integrations/dedupe.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import sentry_sdk
2-
from sentry_sdk.utils import ContextVar
2+
from sentry_sdk.utils import ContextVar, logger
33
from sentry_sdk.integrations import Integration
44
from sentry_sdk.scope import add_global_event_processor
55

@@ -37,7 +37,9 @@ def processor(event, hint):
3737

3838
exc = exc_info[1]
3939
if integration._last_seen.get(None) is exc:
40+
logger.info("DedupeIntegration dropped duplicated error event %s", exc)
4041
return None
42+
4143
integration._last_seen.set(exc)
4244
return event
4345

0 commit comments

Comments
 (0)