diff --git a/api/debian/changelog b/api/debian/changelog index 42ff4aff..a13f205a 100644 --- a/api/debian/changelog +++ b/api/debian/changelog @@ -1,3 +1,9 @@ +ooni-api (1.0.88) unstable; urgency=medium + + * Add more logging + + -- Federico Ceratto Tue, 12 Dec 2023 19:27:18 +0100 + ooni-api (1.0.87) unstable; urgency=medium * Add logging debug ongoing issue diff --git a/api/ooniapi/probe_services.py b/api/ooniapi/probe_services.py index 137c7850..49f1a3be 100644 --- a/api/ooniapi/probe_services.py +++ b/api/ooniapi/probe_services.py @@ -246,8 +246,6 @@ def check_in() -> Response: except Exception: log.error(f"check-in params: {url_limit} '{probe_cc}' '{charging}' '{run_type}' '{software_name}' '{software_version}'") - log.debug(f"check-in params: {url_limit} '{probe_cc}' '{charging}' '{run_type}' '{software_name}' '{software_version}'") - if "web_connectivity" in data: catcodes = data["web_connectivity"].get("category_codes", []) if isinstance(catcodes, str): @@ -318,6 +316,9 @@ def check_in() -> Response: resp["tests"].setdefault(tn, {}) # type: ignore resp["tests"][tn]["report_id"] = rid # type: ignore + til = len(test_items) + log.debug(f"check-in params: {url_limit} {til} '{probe_cc}' '{charging}' '{run_type}' '{software_name}' '{software_version}'") + return nocachejson(**resp)