- db/sqlite.py: enable WAL journal mode per connection — concurrent readers no longer block writers - Replace subprocess.call() with subprocess.run() in 8 files (output.py, qa.py, tools.py, client/misc.py, client/interfaces/db.py, portage_plugin, solo/conf.py) - Replace os.popen() with subprocess.run() in tools.py and core/settings/base.py - Add TODO.md documenting deferred logging module integration Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
929 B
929 B
Entropy — Pending Modernization Tasks
logging module integration (deferred)
What: Wire Python's standard logging module as a backend for the
existing entropy.output system without breaking the TextInterface API.
Goal: Allow log levels and destinations (file, syslog, JSON) to be
configured via logging.conf without touching code.
Approach:
entropy/output.py: haveTextInterface.output()write internally to alogging.Loggerinstead of directly to stdout/stderr- Map existing call parameters to logging levels (
importance=1→INFO,level="error"→ERROR, etc.) - Backwards compatibility: if no handler is configured, behaviour stays identical (NullHandler + own StreamHandler fallback)
Effort: ~2 days
Risk: Medium — output.py is called from almost everything, careful
testing required
Priority: Low — current system works fine, just not configurable