Replace debug toggle with log level dropdown (#252)#332
Conversation
- Remove `Config.General.debug` (bool), add `Config.General.log_level` (string: DEBUG, INFO, WARNING, ERROR, CRITICAL, default INFO) - UI: replace "Enable Debug" checkbox with "Log Level" dropdown - `--debug` CLI flag still works (overrides to DEBUG) - Old configs with `debug` key silently ignored on upgrade - Update 10 test files (unit, integration, E2E) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughReplaces the boolean Changes
Sequence Diagram(s)sequenceDiagram
participant UI as Client UI
participant API as Server API
participant CFG as Config Store
participant CLI as seedsync (CLI)
participant LOG as Logger system
UI->>API: PUT /server/config/set (general.log_level = "DEBUG")
API->>CFG: persist config.general.log_level="DEBUG"
API-->>UI: 200 OK
CLI->>CFG: read config.general.log_level (on start)
CLI->>CLI: apply CLI --debug override? -> effective_log_level
CLI->>LOG: _create_logger(log_level=effective_log_level)
LOG-->>CLI: logger initialized at effective_log_level
CLI->>API: serve web endpoints (uses same logger)
API->>LOG: web-access logs emitted at effective_log_level
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Summary
Config.General.debug(bool), addConfig.General.log_level(DEBUG/INFO/WARNING/ERROR/CRITICAL, default INFO)--debugCLI flag still works (overrides to DEBUG)debugkey silently ignored on upgrade — no crashTest plan
--debugCLI flag still forces DEBUG leveldebug = True, verify no crash and log_level defaults to INFOCloses #252
🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Refactor
Tests