From 55fbea51d07c80471fffb6ece45efaf465e9d953 Mon Sep 17 00:00:00 2001 From: Marcin Usielski Date: Wed, 13 Nov 2024 08:02:47 +0000 Subject: [PATCH] d --- moler/device/proxy_pc2.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/moler/device/proxy_pc2.py b/moler/device/proxy_pc2.py index 3b13d9883..9629ad777 100644 --- a/moler/device/proxy_pc2.py +++ b/moler/device/proxy_pc2.py @@ -257,7 +257,7 @@ def on_connection_lost(self, connection): self._set_state(NOT_CONNECTED) def _detect_after_open_prompt(self, set_callback): - print("Detecting prompt") + self.logger.debug("Command to detect prompt will be sent.") self._prompt_detected = False self._after_open_prompt_detector = Wait4( detect_patterns=[rf'^(.+){self._detecting_prompt_cmd}'], @@ -273,8 +273,6 @@ def _detect_after_open_prompt(self, set_callback): self.io_connection.moler_connection.sendline("") self.io_connection.moler_connection.sendline(self._detecting_prompt_cmd) - # detector.await_done(timeout=self._prompt_detector_timeout) - def _set_after_open_prompt(self, event): occurrence = event.get_last_occurrence() prompt = occurrence['groups'][0].rstrip()