p2.5: log host=- for permit_restricted callers
Scrape, fetch, refused, fetch-failed, and internal lines redact the host for callers in context.permit_restricted. final_url stays in the response. Test captures slog records, not the journal.
This commit is contained in:
@@ -149,6 +149,8 @@ CLI: `sift fetch <url> --question Q` (implies digest + context), `--mode clean|r
|
||||
context calls/hits/failures; recover attempts/successes by route; token ratio histogram.
|
||||
Logs: one INFO line per request with `caller host mode q_len raw_tokens returned_tokens
|
||||
digest_ms fallback`. Never log page content, questions longer than 80 chars, or keys.
|
||||
Callers in `context.permit_restricted` log `host=-` on scrape, fetch, refused, fetch-failed,
|
||||
and internal lines (P2.5). `final_url` stays in the response body.
|
||||
|
||||
## 7. Tests
|
||||
|
||||
|
||||
Reference in New Issue
Block a user