forked from 0xWheatyz/SPARC
Replace print() calls with structured logging in analyzer.py, serp_api.py, and llm.py #1599
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 - Structured logging
Multiple backend modules use
print()for debug output. This makes log filtering, log level control, and production log aggregation difficult.What to do
print()calls inanalyzer.py,serp_api.py, andllm.pywith calls to Python'sloggingmoduleconfig.pyor application startup with a sensible default format and level (LOG_LEVELenv var)Acceptance criteria
print()calls remain in the three target modulesLOG_LEVELenvironment variableRef: ROADMAP.md P2 - Backend
This issue is already resolved in main. No
print()calls remain inanalyzer.py,serp_api.py, orllm.py. All modules uselogging.getLogger(__name__)for structured logging.