Skip to content

Commit

Permalink
Add more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
FedericoCeratto committed Dec 12, 2023
1 parent c971d7d commit 3e53e39
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions api/debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
ooni-api (1.0.88) unstable; urgency=medium

* Add more logging

-- Federico Ceratto <[email protected]> Tue, 12 Dec 2023 19:27:18 +0100

ooni-api (1.0.87) unstable; urgency=medium

* Add logging debug ongoing issue
Expand Down
5 changes: 3 additions & 2 deletions api/ooniapi/probe_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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)


Expand Down

0 comments on commit 3e53e39

Please sign in to comment.