From 96f18d39ae5801f3b8d4f1c7fc43158e1fe89eb3 Mon Sep 17 00:00:00 2001 From: TheTechromancer Date: Sat, 11 May 2024 17:49:01 -0400 Subject: [PATCH] serious debugging --- bbot/scanner/manager.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bbot/scanner/manager.py b/bbot/scanner/manager.py index 6b67e09ea..0051aeedb 100644 --- a/bbot/scanner/manager.py +++ b/bbot/scanner/manager.py @@ -152,15 +152,20 @@ def is_incoming_duplicate(self, event, add=False): """ try: event_hash = event.module._outgoing_dedup_hash(event) + log.critical(f"{event} native hash == {event_hash}") except AttributeError: module_name = str(getattr(event, "module", "")) event_hash = hash((event, module_name)) + log.critical(f"{event} fallback hash == {event_hash}") is_dup = event_hash in self.incoming_dup_tracker if add: self.incoming_dup_tracker.add(event_hash) suppress_dupes = getattr(event.module, "suppress_dupes", True) + log.critical(f"event module {event.module} suppress dupes == {suppress_dupes} and is_dup={is_dup}") if suppress_dupes and is_dup: + log.critical(f"{event} is dup!!!") return True + log.critical(f"{event} is NOT dup!#@#@") return False