Skip to content

fix: downgrade excessive debug logging in hot path - #1694

Merged
ilblackdragon merged 1 commit into
nearai:stagingfrom
anthhub:fix-hot-path-logging
Mar 27, 2026
Merged

ilblackdragon merged 1 commit into
nearai:stagingfrom
anthhub:fix-hot-path-logging

Conversation

@anthhub

@anthhub anthhub commented Mar 27, 2026

Copy link
Copy Markdown

Summary

  • Downgrade 23 tracing::debug! statements introduced by PR fix(extensions): channel-relay auth dead-end, observability, and URL override #1681 to tracing::trace! across three files:
    • src/channels/relay/client.rs (5 sites): HTTP request/response logging in initiate_oauth, proxy_provider, get_signing_secret
    • src/channels/web/server.rs (3 sites): handler entry/retry logging in extensions_activate_handler
    • src/extensions/manager.rs (15 sites): step-by-step logging in has_stored_team_id (called per-extension in list loop), effective_relay_url, auth_channel_relay, activate_channel_relay
  • All warn! and info! level logs are preserved for actionable diagnostics
  • Zero clippy warnings confirmed

Closes #1686

Test plan

  • cargo check passes
  • cargo clippy --all --tests passes with zero warnings
  • Manual: run with RUST_LOG=ironclaw=debug and verify relay activation no longer floods logs
  • Manual: run with RUST_LOG=ironclaw=trace and verify all downgraded messages still appear

🤖 Generated with Claude Code

PR nearai#1681 introduced 23 debug-level log statements across relay client,
web server handlers, and extension manager functions. Many of these fire
on every HTTP request or in loops (e.g. has_stored_team_id called per
extension in list_installed). Downgrade them to trace level to reduce
noise at the default debug log level while preserving warn/info logs
for actionable diagnostics.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions github-actions Bot added scope: channel/web Web gateway channel scope: extensions Extension management size: S 10-49 changed lines risk: medium Business logic, config, or moderate-risk modules contributor: new First-time contributor labels Mar 27, 2026
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

Gemini is experiencing higher than usual traffic and was unable to create the review. Please try again in a few hours by commenting /gemini review.

@zmanian zmanian left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Clean debug! -> trace! downgrade across 23 call sites. Hot paths correctly identified (extension manager loops, relay HTTP round-trips, handler entry logging). No diagnostic info lost -- all messages remain at RUST_LOG=trace. Error-level logs on actual failures untouched. Ship it.

@ilblackdragon
ilblackdragon merged commit 45cd668 into nearai:staging Mar 27, 2026
14 checks passed
DougAnderson444 pushed a commit to DougAnderson444/ironclaw that referenced this pull request Mar 29, 2026
… (nearai#1694)

PR nearai#1681 introduced 23 debug-level log statements across relay client,
web server handlers, and extension manager functions. Many of these fire
on every HTTP request or in loops (e.g. has_stored_team_id called per
extension in list_installed). Downgrade them to trace level to reduce
noise at the default debug log level while preserving warn/info logs
for actionable diagnostics.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
drchirag1991 pushed a commit to drchirag1991/ironclaw that referenced this pull request Apr 8, 2026
… (nearai#1694)

PR nearai#1681 introduced 23 debug-level log statements across relay client,
web server handlers, and extension manager functions. Many of these fire
on every HTTP request or in loops (e.g. has_stored_team_id called per
extension in list_installed). Downgrade them to trace level to reduce
noise at the default debug log level while preserving warn/info logs
for actionable diagnostics.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor: new First-time contributor risk: medium Business logic, config, or moderate-risk modules scope: channel/web Web gateway channel scope: extensions Extension management size: S 10-49 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[MEDIUM] Excessive debug logging in hot path

3 participants