forked from 0xWheatyz/SPARC
Replace print() calls with structured Python logging in analyzer, serp_api, and llm modules #1427
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?
Summary
analyzer.py,serp_api.py, andllm.pyuseprint()for diagnostics. This makes log aggregation and level filtering impossible.What to do
print()calls withlogging.getLogger(__name__)calls at appropriate levels (DEBUG/INFO/WARNING/ERROR).api.pyor alogging_config.pymodule.Acceptance criteria
print()calls remain in the three target modules.LOG_LEVELenvironment variable.References
Roadmap: P2 Backend -- structured logging.
Already implemented. All modules (
analyzer.py,serp_api.py,llm.py,auth.py,webhooks.py,scheduler.py,storage.py) uselogging.getLogger(__name__)with structured log calls.config.pyconfigureslogging.basicConfigwith theLOG_LEVELenvironment variable. Noprint()calls remain in the SPARC package.Closing as completed.