Report receiver: don't log senders' addresses
shellcheck / shellcheck (push) Failing after 14s

The rate limit keeps addresses in memory, for at most a day; the log
lines don't need them, so the privacy policy can say they aren't stored.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-08 12:14:03 -07:00
co-authored by Claude Opus 5.5
parent 480e6ea18d
commit a805fd7072
2 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -332,7 +332,8 @@ def make_handler(store, limiter):
threading.Thread(target=store.deliver, args=(report_id,), daemon=True).start()
def log_message(self, format, *args):
print(f"{self.client_address_seen()} {format % args}", file=sys.stderr, flush=True)
# Without the client's address: it's only kept, in memory, for the rate limit
print(format % args, file=sys.stderr, flush=True)
return Handler