Philipp Hörist pushed to branch master at gajim / gajim
Commits: a52b9237 by lovetox at 2022-01-03T22:48:58+01:00 Events: Fix MessageReceived event
- - - - - 15f338e4 by lovetox at 2022-01-03T22:49:50+01:00 Use log level=ERROR for nbxmpp
We need ERROR because log.exception() uses that level and we always want to see exception on the console
- - - - -
2 changed files:
- gajim/common/events.py - gajim/common/logging_helpers.py
Changes:
===================================== gajim/common/events.py ===================================== @@ -383,8 +383,6 @@ class MessageReceived(ApplicationEvent): additional_data: 'AdditionalDataDict' unique_id: str stanza_id: str - archive_jid: str - kind: 'KindConstant' fjid: str resource: str session: Any @@ -394,7 +392,7 @@ class MessageReceived(ApplicationEvent):
@dataclass -class GcMessageReceived(ApplicationEvent): +class GcMessageReceived(MessageReceived): name: str = field(init=False, default='gc-message-received') room_jid: str
===================================== gajim/common/logging_helpers.py ===================================== @@ -174,7 +174,7 @@ def init() -> None: root_log.propagate = False
root_log = logging.getLogger('nbxmpp') - root_log.setLevel(logging.CRITICAL) + root_log.setLevel(logging.ERROR) root_log.addHandler(consoleloghandler) root_log.propagate = False
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/compare/092ac61925ce81ab81123c268d9b6186...