Skip to content

Logging: downgrade high-volume messages to debug - #13212

Draft
ericholscher wants to merge 2 commits into
mainfrom
claude/reduce-logging-spam-yzm0bc
Draft

Logging: downgrade high-volume messages to debug#13212
ericholscher wants to merge 2 commits into
mainfrom
claude/reduce-logging-spam-yzm0bc

Conversation

@ericholscher

Copy link
Copy Markdown
Member

Our most-logged messages (1-day sample) are all expected, per-build/per-webhook events that aren't actionable at INFO/WARNING level. This PR downgrades them to DEBUG, following one rule: state changes and terminal failures stay at INFO; routine "about to do X" markers move to DEBUG.

Message (volume/day) Why DEBUG is safe
Checking out. (21k) Commit is stored on the Build and shown in build output
Skipping project versions. (19.1k) Webhook response returns build_triggered: false + versions, visible in the provider's webhook delivery UI
Unsupported event (18.8k) The 400 response body already says Unsupported event: <name>
Writing build artifacts to media storage (18k) Build transitions to uploading state in the DB on the next line
GitHub project does not exist or user does not have permissions. (12.6k, 3 call sites) Per-attempt noise from loops over users' tokens; terminal failures still log at INFO and create user-facing notifications (MESSAGE_OAUTH_BUILD_STATUS_FAILURE, MESSAGE_OAUTH_WEBHOOK_NO_PERMISSIONS)
Running version automation rules. (11.9k) "Automation rule matched." stays at INFO
Syncing repository via remote listing. (11.6k) "Re-syncing versions: versions added/deleted." stay at INFO; failures log exceptions
Deleting old files from search index. (10.4k) Failures log "Unable to delete a subset of files."
External version updated. (10.1k) Fires on every push to an open PR; "External version created."/"marked as closed" (state changes) stay at INFO

The artifact size/timing logs kept their INFO-level signal but consolidated: "Store build artifacts finished." now carries the upload time and per-type sizes in a single line per build, replacing the separate "Build artifacts directory size." lines. Storage slowness and artifact-size abuse remain debuggable from INFO logs at a third of the volume (~57k → ~18k/day).

Not addressed here: "Spam rule matched." (13.9k) and "Show ads denied." (8.35k) come from readthedocsext.spamfighting and need a matching pass in that repo.

Total: roughly 150k log lines/day drop out of INFO.


🤖 Generated with Claude Code

https://claude.ai/code/session_01HfZV9pHCFW5iU1J7nDt3sd


Generated by Claude Code

claude added 2 commits July 28, 2026 20:41
Reduce logging spam from our most-logged messages. These are all
expected, per-build/per-webhook events that aren't actionable at
INFO/WARNING level.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HfZV9pHCFW5iU1J7nDt3sd
Keep upload time and per-type artifact sizes visible at INFO for
debugging storage slowness and size abuse, in a single log per build.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HfZV9pHCFW5iU1J7nDt3sd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants