github tmux-python/tmuxp v1.66.0
v1.66.0 - logging improvements

latest release: v1.67.0
23 hours ago

What's Changed

Bug fixes

  • Fix default CLI log level from INFO to WARNING so normal usage is not noisy
  • Suppress raw Python tracebacks on workspace build failure; error details available via --log-level debug while the user sees only [Error] <message>
  • Fix get_pane() to match sibling methods: widen catch to Exception, preserve exception chain via from e, replace bare print() with structured debug log
  • Route ls --json and debug-info --json through OutputFormatter for consistent machine-readable output

Development

Structured logging with extra context across all modules

All modules now use logging.getLogger(__name__) with structured extra keys (tmux_session, tmux_window, tmux_pane, tmux_config_path, etc.) for filtering and aggregation. Library __init__.py adds
NullHandler per Python best practices. A new TmuxpLoggerAdapter provides persistent context for objects with stable identity.

  • Remove colorama runtime and type-stub dependencies; replace with stdlib ANSI constants
  • Route all raw print() calls through tmuxp_echo() for consistent output channels

Links

  • feat(logging): structured logging, colorama removal, OutputFormatter by @tony in #1017

Full Changelog: v1.65.0...v1.66.0

Don't miss a new tmuxp release

NewReleases is sending notifications on new releases.