added new value to debug msg in on_timeout
@@ -262,17 +262,19 @@ class CommandTextualGeneric(Command):
:return: None.
"""
+ if self.break_on_timeout:
+ self.break_cmd()
msg = ("Timeout when command_string='{}', _cmd_escaped='{}', _cmd_output_started='{}', ret_required='{}', "
"break_on_timeout='{}', _last_not_full_line='{}', _re_prompt='{}', do_not_process_after_done='{}', "
"newline_after_command_string='{}', wait_for_prompt_on_exception='{}', _stored_exception='{}', "
- "current_ret='{}', _newline_chars='{}', concatenate_before_command_starts='{}'.").format(
+ "current_ret='{}', _newline_chars='{}', _concatenate_before_command_starts='{}', "
+ "_command_string_right_index={}.").format(
self.__command_string, self._cmd_escaped, self._cmd_output_started, self.ret_required,
self.break_on_timeout, self._last_not_full_line, self._re_prompt, self.do_not_process_after_done,
self.newline_after_command_string, self.wait_for_prompt_on_exception, self._stored_exception,
- self.current_ret, self._newline_chars, self._concatenate_before_command_starts)
+ self.current_ret, self._newline_chars, self._concatenate_before_command_starts,
+ self._command_string_right_index)
self._log(logging.DEBUG, msg, levels_to_go_up=2)
- if self.break_on_timeout:
- self.break_cmd()
def has_any_result(self):
"""
