forked from 0xWheatyz/SPARC
Replace print() calls with structured logging in analyzer.py, serp_api.py, and llm.py #292
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?
Context
Multiple backend modules use
print()for logging. This makes it impossible to control log levels, format output consistently, or integrate with log aggregation tooling.Task
print()calls inanalyzer.py,serp_api.py, andllm.pywithlogging.getLogger(__name__)callsDEBUGfor verbose output,INFOfor normal operations,WARNING/ERRORfor problemslogging.basicConfigor alogging.config.dictConfig)LOG_LEVELenvironment variableAcceptance Criteria
print()calls remain in the three target filesLOG_LEVELenv var without code changesReference
ROADMAP.md — P2 Backend: Add structured logging
Triage: Assigned to @AI-Engineer. P2 backend improvement. Will be queued after P1 work completes.
Already implemented on main. All three files (
analyzer.py,serp_api.py,llm.py) uselogging.getLogger(__name__)with noprint()calls remaining. Root logger configured inconfig.pywithlogging.basicConfig().LOG_LEVELenv var supported (line 13). Documented in.env.example. All acceptance criteria met. Closing.