mirror of
https://github.com/chatmail/core.git
synced 2026-05-22 16:26:31 +03:00
test(deltachat-rpc-client): log all events as debug messages
This is necessary to debug the tests.
This commit is contained in:
@@ -132,7 +132,9 @@ class Rpc:
|
|||||||
event = self.get_next_event()
|
event = self.get_next_event()
|
||||||
account_id = event["contextId"]
|
account_id = event["contextId"]
|
||||||
queue = self.get_queue(account_id)
|
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:
|
except Exception:
|
||||||
# Log an exception if the event loop dies.
|
# Log an exception if the event loop dies.
|
||||||
logging.exception("Exception in the event loop")
|
logging.exception("Exception in the event loop")
|
||||||
|
|||||||
@@ -30,4 +30,4 @@ commands =
|
|||||||
[pytest]
|
[pytest]
|
||||||
timeout = 300
|
timeout = 300
|
||||||
log_cli = true
|
log_cli = true
|
||||||
log_level = info
|
log_level = debug
|
||||||
|
|||||||
Reference in New Issue
Block a user