From 716bd6afb6206e48f24860173311ed29506b72e7 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Wed, 3 Aug 2022 09:25:12 +0100 Subject: [PATCH] Remove some debugging code --- core/lib/manage/threshold.py | 2 -- core/lib/opensearch.py | 1 - 2 files changed, 3 deletions(-) diff --git a/core/lib/manage/threshold.py b/core/lib/manage/threshold.py index efdecd0..7576945 100644 --- a/core/lib/manage/threshold.py +++ b/core/lib/manage/threshold.py @@ -168,7 +168,6 @@ def construct_alert_query(): def get_irc_alerts(user): query = construct_alert_query() - print("QUERY1", query) results = run_main_query( client, user, # passed through run_main_query to filter_blacklisted @@ -176,7 +175,6 @@ def get_irc_alerts(user): custom_query=True, index=settings.OPENSEARCH_INDEX_INT, ) - print("ALERTS", results) if not results: return [] results_parsed = [] diff --git a/core/lib/opensearch.py b/core/lib/opensearch.py index 9f1ee43..26b88fd 100644 --- a/core/lib/opensearch.py +++ b/core/lib/opensearch.py @@ -124,7 +124,6 @@ def run_main_query(client, user, query, custom_query=False, index=None, size=Non try: response = client.search(body=search_query, index=index) except RequestError as err: - print(err) return False filter_blacklisted(user, response) return response