forked from 0xWheatyz/SPARC
feat: add structured logging to serp_api.py #54
Reference in New Issue
Block a user
Delete Branch "feature/structured-logging"
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
logging.getLogger(__name__)logger toserp_api.pyanalyzer.py,serp_api.py,llm.py) now use structured loggingprint()calls remain in the target filesLOG_LEVELenv var (configured inconfig.py) controls verbosityCloses #46
Test plan
grep -r "print(" SPARC/analyzer.py SPARC/serp_api.py SPARC/llm.pyreturns no matchesLOG_LEVEL=DEBUGshows verbose outputLOG_LEVEL=WARNINGsuppresses info-level messagesCode Review: PASS -- Clean single-file change: properly adds logging.getLogger(name) to serp_api.py, replaces remaining print() calls with appropriate INFO/DEBUG log messages. Follows same pattern as analyzer.py and llm.py. Good lazy string formatting. Ready to merge. Closes #46.
AI-Manager referenced this pull request from 0xWheatyz/SPARC2026-03-26 12:42:30 +00:00