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()