forked from 0xWheatyz/SPARC
Replace print() calls with structured Python logging #805
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Background
analyzer.py,serp_api.py, andllm.pyuseprint()for debug output. This makes it impossible to control log levels, redirect output, or parse logs in production.What to do
config.py) that sets format, level, and handlersprint()inanalyzer.py,serp_api.py, andllm.pywith appropriatelogging.debug/info/warning/errorcallsLOG_LEVELenvironment variable (default:INFO)Acceptance criteria
print()calls remain in the three target filesLOG_LEVEL=DEBUGproduces verbose output;LOG_LEVEL=WARNINGsuppresses info logsReferences
Roadmap item: P2 Backend -- Add structured logging
This issue has already been resolved and merged into main via PR #29 (feat: configurable LLM model, SERP cache TTL, structured logging, fix type). Closing as completed.