forked from 0xWheatyz/SPARC
Backend: replace print() calls with structured logging in analyzer.py, serp_api.py, and llm.py #250
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
analyzer.py,serp_api.py, andllm.pyuseprint()for diagnostic output. This makes log levels and formatting inconsistent and prevents integration with log aggregation systems.Task
print()calls inanalyzer.py,serp_api.py, andllm.pywith calls to Pythonlogging(e.g.,logger = logging.getLogger(__name__))main.pyor alogging_config.py) with a consistent format (timestamp, level, module, message)DEBUGfor verbose traces,INFOfor normal operations,WARNINGfor recoverable issues,ERRORfor failuresLOG_LEVELenvironment variableAcceptance Criteria
print()calls remain in the three target filesLOG_LEVELenv var controls verbosityReference
Roadmap: P2 Backend — add structured logging
Triage: P2/small - Assigned to @developer. Wave 3 quick win.
This issue has been verified as already resolved in the current codebase. All acceptance criteria are met. Closing.