From 09798df7a0a562aa6d6e95d5830f45647a80895f Mon Sep 17 00:00:00 2001 From: link2xt Date: Sat, 7 Oct 2023 23:50:38 +0000 Subject: [PATCH] refactor(deltachat-rpc-client): remove print() calls --- deltachat-rpc-client/src/deltachat_rpc_client/pytestplugin.py | 1 - deltachat-rpc-client/src/deltachat_rpc_client/rpc.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/deltachat-rpc-client/src/deltachat_rpc_client/pytestplugin.py b/deltachat-rpc-client/src/deltachat_rpc_client/pytestplugin.py index a5140a061c..9fb1422e73 100644 --- a/deltachat-rpc-client/src/deltachat_rpc_client/pytestplugin.py +++ b/deltachat-rpc-client/src/deltachat_rpc_client/pytestplugin.py @@ -54,7 +54,6 @@ def get_online_account(self) -> Account: account.start_io() while True: event = account.wait_for_event() - print(event) if event.type == EventType.IMAP_INBOX_IDLE: break return account diff --git a/deltachat-rpc-client/src/deltachat_rpc_client/rpc.py b/deltachat-rpc-client/src/deltachat_rpc_client/rpc.py index 65b1391dc0..4a181c528c 100644 --- a/deltachat-rpc-client/src/deltachat_rpc_client/rpc.py +++ b/deltachat-rpc-client/src/deltachat_rpc_client/rpc.py @@ -97,7 +97,7 @@ def reader_loop(self) -> None: self.request_results[response_id] = response event.set() else: - print(response) + logging.warning("Got a response without ID: %s", response) except Exception: # Log an exception if the reader loop dies. logging.exception("Exception in the reader loop")