forked from 0xWheatyz/SPARC
Replace print() calls with structured logging in analyzer.py, serp_api.py, and llm.py #408
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?
Summary
Multiple backend modules use
print()for debug/info output. This makes log levels, formatting, and filtering inconsistent and unusable in production.What to do
logging_config.py(or use existing config) that configures the root logger with a consistent formatteranalyzer.py,serp_api.py, andllm.py, replace allprint()calls withlogger = logging.getLogger(__name__)and appropriate log levels (debug,info,warning,error)LOG_LEVELenvironment variableAcceptance Criteria
print()calls remain inanalyzer.py,serp_api.py, orllm.pyLOG_LEVEL=DEBUGshows verbose output;LOG_LEVEL=WARNINGsuppresses info logsReference
Roadmap: P2 - Backend / Add structured logging
Triage: Already Implemented
After reviewing the codebase, this issue has already been fully implemented in the current
mainbranch.This issue can be closed.