Philipp Hörist pushed to branch master at gajim / gajim
Commits: 944c5874 by lovetox at 2020-03-20T16:11:50+01:00 Logging: Pass context to nbxmpp.Client
- - - - - 382725a2 by lovetox at 2020-03-20T16:11:50+01:00 Logging: Change log format
- - - - -
2 changed files:
- gajim/common/client.py - gajim/common/logging_helpers.py
Changes:
===================================== gajim/common/client.py ===================================== @@ -112,7 +112,7 @@ class Client(ConnectionHandlers):
def _create_client(self): log.info('Create new nbxmpp client') - self._client = NBXMPPClient() + self._client = NBXMPPClient(log_context=self._account) self.connection = self._client self._client.set_domain(self._hostname) self._client.set_username(self._user)
===================================== gajim/common/logging_helpers.py ===================================== @@ -143,7 +143,7 @@ def init(): consoleloghandler = logging.StreamHandler() consoleloghandler.setFormatter( FancyFormatter( - '%(asctime)s %(levelname)s %(name)s %(message)s', + '%(asctime)s %(levelname)s %(name)-35s %(message)s', '%x %H:%M:%S', use_color )
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/compare/eebc393f6ded9a9ccae9416209d3126a...