forked from 0xWheatyz/SPARC
Replace print() calls with structured logging in analyzer.py, serp_api.py, and llm.py #138
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
Multiple backend modules use
print()for diagnostics. This produces unstructured output that cannot be filtered by log level or consumed by log aggregators.Work
loggingconfiguration in a shared module (e.g.,logger.pyorconfig.py).print()call inanalyzer.py,serp_api.py, andllm.pywith the appropriatelogging.info(),logging.warning(), orlogging.error()call.LOG_LEVELas an environment variable.Acceptance Criteria
print()calls remain inanalyzer.py,serp_api.py, orllm.py.LOG_LEVEL=DEBUGproduces structured log output.References
Roadmap: P2 — Backend — Add structured logging.
Closing: Structured logging (Python logging module) replaces print() calls in analyzer.py, serp_api.py, and llm.py. Resolved via PR #54 and related work.