Skip to content

Commit c40e14b

Browse files
committed
Add error message to info log
1 parent 536e774 commit c40e14b

File tree

1 file changed

+2
-2
lines changed
  • ooniapi/services/ooniprobe/src/ooniprobe/routers

1 file changed

+2
-2
lines changed

ooniapi/services/ooniprobe/src/ooniprobe/routers/reports.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ async def receive_measurement(
112112
empty_measurement = {}
113113
try:
114114
rid_timestamp, test_name, cc, asn, format_cid, rand = report_id.split("_")
115-
except Exception:
116-
log.info("Unexpected report_id %r", report_id[:200])
115+
except Exception as e:
116+
log.info(f"Unexpected report_id {report_id[:200]}. Error: {e}", )
117117
raise error("Incorrect format")
118118

119119
# TODO validate the timestamp?

0 commit comments

Comments
 (0)