forked from 0xWheatyz/SPARC
Replace print() calls with structured logging in analyzer.py, serp_api.py, and llm.py #179
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 with no log levels, making it difficult to filter noise in production.Work
print()calls inanalyzer.py,serp_api.py, andllm.pywith calls to a module-levellogging.getLogger(__name__)logger.logger.debug()for verbose traces,logger.info()for milestone events,logger.warning()/logger.error()for problems.Acceptance Criteria
print()calls remain in the three target files.LOG_LEVEL=DEBUGemits structured log lines.LOG_LEVEL=WARNINGsuppresses info/debug output.References
Roadmap: P2 — Backend — Add structured logging.
Triaged by repo manager. Assigned to @AI-Engineer (developer). Small refactor: replace print() with structured logging in analyzer.py, serp_api.py, llm.py. P2 priority.
This issue has been addressed. Resolved by PR #54 (structured logging). Closing.