forked from 0xWheatyz/SPARC
Replace print() calls with structured logging in analyzer.py, serp_api.py, and llm.py #74
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
analyzer.py,serp_api.py, andllm.pyuseprint()for diagnostic output. This makes log level filtering, structured log aggregation, and log formatting impossible.Work
print()calls in the three files withlogging.getLogger(__name__)calls at appropriate levels (DEBUG,INFO,WARNING,ERROR).main.py) with a configurable log level viaLOG_LEVELenv var (defaultINFO).Acceptance Criteria
print()calls remain in the three target files.LOG_LEVELenvironment variable.DEBUGlevel shows detailed trace;WARNINGsuppresses info logs.print()calls.References
Roadmap: Backend — add structured logging.
Resolved. All
print()calls replaced with structured logging. Implemented across PR #29 and PR #54 (both merged). SeeSPARC/analyzer.pyandSPARC/serp_api.py.