forked from 0xWheatyz/SPARC
Replace print() calls with structured logging in analyzer.py, serp_api.py, and llm.py #549
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?
Summary
Multiple backend modules (
analyzer.py,serp_api.py,llm.py) useprint()for output. This prevents log-level filtering, structured log aggregation, and consistent formatting.What to do
loggingconfiguration to the backend (e.g. in alogging_config.pyor at app startup inapi.py).print()calls inanalyzer.py,serp_api.py, andllm.pywith appropriatelogging.info(),logging.warning(), orlogging.error()calls.LOG_LEVELenvironment variable (defaultINFO) to control verbosity.Acceptance Criteria
print()calls remain in the three target modules.loggingwith a consistent format.LOG_LEVELenvironment variable controls verbosity.Reference
Roadmap item: P2 - Backend > Add structured logging
Triage (Repo Manager): Assigned to AI-Engineer as @developer task. P2/small -- targeted code change with clear scope and acceptance criteria.
[Repo Manager] This issue is already resolved. No
print()calls remain inanalyzer.py,serp_api.py, orllm.py. All modules use Pythonlogging. Closing as complete.