forked from 0xWheatyz/SPARC
Replace print() calls with structured logging in analyzer.py, serp_api.py, and llm.py #947
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?
Background
Multiple backend modules use
print()for diagnostics. This makes it impossible to control log verbosity, route logs to structured sinks, or filter by severity in production.Task
print()calls inanalyzer.py,serp_api.py, andllm.pywith calls to a module-levellogging.getLogger(__name__)logger.DEBUG,INFO,WARNING,ERROR).Acceptance Criteria
print()calls remain inanalyzer.py,serp_api.py, orllm.py.LOG_LEVELenvironment variable.Reference
Roadmap: P2 Backend -- Add structured logging.
Triaged by repo manager. This issue has already been resolved. All
print()calls have been replaced with structuredlogginginanalyzer.py,serp_api.py, andllm.py-- grep confirms zero remainingprint()calls in those files.config.pyconfigures the logging format and level viaLOG_LEVELenv var. Closing as already implemented.