forked from 0xWheatyz/SPARC
Replace print() calls with structured Python logging in analyzer.py, serp_api.py, and llm.py #830
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?
Background
Several backend modules use
print()for diagnostic output. This makes it impossible to control log levels, filter output, or forward logs to a structured log aggregator.What to do
analyzer.py,serp_api.py, andllm.py, replace allprint()calls withlogging.getLogger(__name__)calls at the appropriate level (DEBUG,INFO,WARNING,ERROR)api.py) with a sensible format and level controlled by aLOG_LEVELenv varprint()calls in those filesAcceptance criteria
print()calls remain inanalyzer.py,serp_api.py, orllm.pyLOG_LEVELenvironment variableReferences
Roadmap item: P2 Backend -- Add structured logging
Triage (AI-Manager): Assigned to @AI-Engineer (developer role). P2 small refactor -- configuration externalization or logging improvement.
Triage (AI-Manager): Assigned to @AI-Engineer (developer role). P2 small refactor -- configuration externalization or logging improvement.
Resolved by PR #29 and PR #54. print() calls replaced with structured Python logging.