test(deltachat-rpc-client): log all events as debug messages

This is necessary to debug the tests.
This commit is contained in:
link2xt
2023-11-09 02:26:29 +00:00
committed by holger krekel
parent 0a48a2effa
commit 1856c622a1
2 changed files with 4 additions and 2 deletions

View File

@@ -132,7 +132,9 @@ class Rpc:
event = self.get_next_event()
account_id = event["contextId"]
queue = self.get_queue(account_id)
queue.put(event["event"])
event = event["event"]
logging.debug("account_id=%d got an event %s", account_id, event)
queue.put(event)
except Exception:
# Log an exception if the event loop dies.
logging.exception("Exception in the event loop")

View File

@@ -30,4 +30,4 @@ commands =
[pytest]
timeout = 300
log_cli = true
log_level = info
log_level = debug