Read the sent log for `telemetry show-sent`.
()
| 291 | |
| 292 | |
| 293 | def get_sent_records() -> list[dict[str, Any]]: |
| 294 | """Read the sent log for `telemetry show-sent`.""" |
| 295 | sent = _sent_log_path() |
| 296 | if not sent.exists(): |
| 297 | return [] |
| 298 | records = [] |
| 299 | for line in sent.read_text().splitlines(): |
| 300 | line = line.strip() |
| 301 | if line: |
| 302 | try: |
| 303 | records.append(json.loads(line)) |
| 304 | except Exception: |
| 305 | pass |
| 306 | return records |
no test coverage detected