mirror of
https://github.com/chatmail/core.git
synced 2026-05-19 23:06:32 +03:00
api!(deltachat-jsonrpc): use kind as a tag for all union types
This commit is contained in:
@@ -14,9 +14,9 @@ hooks = events.HookCollection()
|
||||
|
||||
@hooks.on(events.RawEvent)
|
||||
async def log_event(event):
|
||||
if event.type == EventType.INFO:
|
||||
if event.kind == EventType.INFO:
|
||||
logging.info(event.msg)
|
||||
elif event.type == EventType.WARNING:
|
||||
elif event.kind == EventType.WARNING:
|
||||
logging.warning(event.msg)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user