forked from 0xWheatyz/SPARC
Replace print() calls with structured logging in analyzer.py, serp_api.py, and llm.py #575
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
analyzer.py,serp_api.py, andllm.pyuseprint()for diagnostic output. This means log levels cannot be filtered, log format is inconsistent, and structured log aggregators (e.g., Loki) cannot parse the output.What to do
logger = logging.getLogger(__name__).print()calls with appropriatelogger.debug(),logger.info(),logger.warning(), orlogger.error()calls.LOG_LEVELenvironment variable (defaultINFO).Acceptance criteria
print()calls remain in the three named files.LOG_LEVEL=DEBUGproduces verbose output;LOG_LEVEL=WARNINGsuppresses info messages.Reference
Roadmap: P2 — Backend — Add structured logging
Triage (AI-Manager): P2 refactor. Replace print() with structured logging in 3 files. Small scope, developer role. Assigned to @AI-Engineer. Feature branch required.
This issue has been resolved. Implemented in PR #29 (feature/p2-config-improvements) - structured logging added. All changes are merged into main. Closing as completed.