Improve debug logging for tmux