Added logging of PTY redirect