-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
Summary
Replace the binary debug toggle (on/off) with a configurable log level selector supporting all standard Python log levels: DEBUG, INFO, WARNING, ERROR, CRITICAL.
Motivation
The current logging config is a boolean — config.general.debug toggles between INFO and DEBUG. Users have no way to set WARNING/ERROR/CRITICAL levels to reduce log noise in production, or to fine-tune verbosity.
Current State
config.general.debug(bool) —True= DEBUG,False= INFO- CLI
--debugflag overrides the config value - Logging supports standard and JSON formats (already configurable)
- Multiprocess logging already works via QueueHandler
Implementation
Config change (clean break)
- Remove
debugproperty fromConfig.General - Add
log_levelstring property (values:DEBUG,INFO,WARNING,ERROR,CRITICAL) - Default:
INFO - The config parser already silently ignores unknown keys, so existing
debug = Truelines in old config files won't crash on upgrade — they'll just be ignored, andlog_leveldefaults toINFO
Python backend
- Update
Seedsync._create_logger()to useconfig.general.log_levelinstead of the debug boolean - Update
--debugCLI flag to setlog_level = DEBUG(backward compat for CLI users) - Update multiprocess log level propagation
Angular UI
- Replace the "Enable Debug" checkbox in the Logging section with a "Log Level" dropdown
- Choices: DEBUG, INFO, WARNING, ERROR, CRITICAL
- Update
Config.Generalinterface andDEFAULT_GENERAL
Config serialization
- Update
serialize_config.pyand tests
Acceptance Criteria
-
debugbool removed from config, replaced withlog_levelstring - Default is
INFO; old configs withdebugkey don't crash on startup - UI shows dropdown with all 5 log levels in Logging section
-
--debugCLI flag still works (sets log_level to DEBUG) - All log levels work correctly (verified with each level)
- Tests updated
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request