forked from 0xWheatyz/SPARC
Replace print() calls with structured logging in analyzer.py, serp_api.py, and llm.py #1529
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 output. This makes it impossible to control log levels, filter by severity, or ship logs to a collector in a consistent format.Roadmap reference: ROADMAP.md > P2 > Backend > Add structured logging
What to do
loggingin each ofanalyzer.py,serp_api.py, andllm.pyprint()calls with the appropriate log level (logger.debug,logger.info,logger.warning,logger.error)Acceptance criteria
print()calls remain inanalyzer.py,serp_api.py, orllm.pyLOG_LEVEL=WARNINGsuppresses INFO output)LOG_LEVELis documented in.env.exampleTriage review: Resolved: analyzer.py, serp_api.py, and llm.py all use the logging module. No print() calls remain. Closing as already complete.