forked from 0xWheatyz/SPARC
Replace print() calls with structured logging in analyzer.py, serp_api.py, and llm.py #99
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 produces unstructured logs with no level control, making production debugging and log aggregation difficult.Work
logging.getLogger(__name__)logger at the top of each module.print()calls with appropriatelogger.debug(),logger.info(),logger.warning(), orlogger.error()calls.LOG_LEVELenvironment variable (defaultINFO).Acceptance Criteria
print()calls remain inanalyzer.py,serp_api.py, orllm.py.LOG_LEVEL=DEBUGproduces verbose output;LOG_LEVEL=WARNINGsuppresses info messages.References
Roadmap: P2 — Backend — Add structured logging.