Files
entropy/TODO.md
Mario Fetka 8719186730 modernization: SQLite WAL, subprocess.run, TODO.md
- 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>
2026-06-26 12:02:23 +02:00

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: have TextInterface.output() write internally to a logging.Logger instead of directly to stdout/stderr
  • Map existing call parameters to logging levels (importance=1INFO, 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