forked from 0xWheatyz/SPARC
Replace print() calls with structured logging in analyzer.py, serp_api.py, and llm.py #1576
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
Roadmap item: P2 - Backend - Add structured logging
analyzer.py,serp_api.py, andllm.pyuseprint()for output. This makes log levels, formatting, and filtering inconsistent.What to do
print()calls in the three modules with calls to the PythonloggingmoduleLOG_LEVELenv varDEBUGfor verbose tracing,INFOfor normal operations,WARNING/ERRORfor problemsLOG_LEVELto.env.exampleAcceptance criteria
print()calls remain inanalyzer.py,serp_api.py, orllm.pyLOG_LEVEL=DEBUGproduces verbose output;LOG_LEVEL=WARNINGsuppresses info logsRef: ROADMAP.md P2 - Backend
[Manager Triage] Assigned to @AI-Engineer. Priority: P2 (code quality/refactoring). Developer-level change.
Triage: Already Resolved
No
print()calls remain inSPARC/analyzer.py,SPARC/serp_api.py, orSPARC/llm.py. All three files use structured logging via theloggingmodule (logger instances at module level). Log level is configurable viaLOG_LEVELenv var.Closing as resolved.