Skip to content

Conversation

@claude
Copy link
Contributor

@claude claude bot commented Jan 2, 2026

Summary

  • Adds QUIET_MODE environment variable (set to "true" or "1" to enable) that filters noise logs
  • Marks worker per-job logs with windmill_verbose target that gets filtered in quiet mode
  • Increases periodic log intervals by 10x when quiet mode is enabled

Changes

backend/windmill-common/src/tracing_init.rs

  • Added QUIET_MODE lazy_static env var
  • Added VERBOSE_TARGET constant ("windmill_verbose") for logs that should be suppressed
  • Created create_targets_filter() helper that filters the verbose target when quiet mode is on

backend/windmill-worker/src/handle_child.rs

  • Changed periodic logs to use VERBOSE_TARGET:
    • "job still running" log
    • "worker memory snapshot" log
    • "job finished" log
    • "child process took" log
  • Increased "still running" log interval from every tick (500ms) to every 10 ticks (5s) in quiet mode
  • Increased memory snapshot log interval from every 10 ticks (5s) to every 100 ticks (50s) in quiet mode

backend/windmill-worker/src/worker.rs

  • Changed per-job logs to use VERBOSE_TARGET:
    • "started handling of job" log
    • "fetched job" log
  • Added quiet mode notification in job logs

Test plan

  • Run worker with QUIET_MODE=true and verify verbose logs are suppressed
  • Run worker without QUIET_MODE and verify all logs appear normally
  • Verify periodic logs have increased intervals in quiet mode

Closes #7477

🤖 Generated with Claude Code

Add QUIET_MODE environment variable (set to "true" or "1" to enable) that:
- Filters logs with the "windmill_verbose" target via tracing_init
- Increases frequency of periodic logs by 10x when enabled
- Marks per-job worker logs as verbose so they are suppressed in quiet mode

Key changes:
- Add QUIET_MODE lazy_static and VERBOSE_TARGET constant to tracing_init.rs
- Create create_targets_filter() helper that filters windmill_verbose target
- Mark periodic "still running" and "memory snapshot" logs with VERBOSE_TARGET
- Mark per-job "fetched job", "started handling", "job finished" logs as verbose
- Increase memory snapshot interval from every 10 ticks to every 100 ticks in quiet mode
- Increase "still running" log interval from every tick to every 10 ticks in quiet mode
- Add quiet mode notification in job logs

Closes #7477

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: windmill-internal-app[bot] <windmill-internal-app[bot]@users.noreply.github.com>
@cloudflare-workers-and-pages
Copy link

Deploying windmill with  Cloudflare Pages  Cloudflare Pages

Latest commit: 242a0ff
Status: ✅  Deploy successful!
Preview URL: https://7a2cc5fa.windmill.pages.dev
Branch Preview URL: https://claude-issue-7477-20260102-0.windmill.pages.dev

View logs

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.

implement quiet mode to filter noise logs

1 participant