Philipp Hörist pushed to branch master at gajim / gajim
Commits:
b60fe026 by Philipp Hörist at 2017-09-22T00:07:48+02:00
Use own module logger for connection_zeroconf
- - - - -
1 changed file:
- gajim/common/zeroconf/connection_zeroconf.py
Changes:
=====================================
gajim/common/zeroconf/connection_zeroconf.py
=====================================
--- a/gajim/common/zeroconf/connection_zeroconf.py
+++ b/gajim/common/zeroconf/connection_zeroconf.py
@@ -50,6 +50,8 @@ from gajim.common.zeroconf import zeroconf
from gajim.common.zeroconf.connection_handlers_zeroconf import *
from gajim.common.connection_handlers_events import *
+log = logging.getLogger('gajim.c.connection_zeroconf')
+
class ConnectionZeroconf(CommonConnection, ConnectionHandlersZeroconf):
def __init__(self, name):
ConnectionHandlersZeroconf.__init__(self)
@@ -73,7 +75,7 @@ class ConnectionZeroconf(CommonConnection,
ConnectionHandlersZeroconf):
values
"""
if not app.config.get_per('accounts', app.ZEROCONF_ACC_NAME, 'name'):
- app.log.debug('Creating zeroconf account')
+ log.debug('Creating zeroconf account')
app.config.add_per('accounts', app.ZEROCONF_ACC_NAME)
app.config.set_per('accounts', app.ZEROCONF_ACC_NAME,
'autoconnect', True)
@@ -123,7 +125,7 @@ class ConnectionZeroconf(CommonConnection,
ConnectionHandlersZeroconf):
def reconnect(self):
# Do not try to reco while we are already trying
self.time_to_reconnect = None
- app.log.debug('reconnect')
+ log.debug('reconnect')
self.disconnect()
self.change_status(self.old_show, self.status)
View it on GitLab:
https://dev.gajim.org/gajim/gajim/commit/b60fe02680f34011b9cd6ae854ba690ae9a38be6
---
View it on GitLab:
https://dev.gajim.org/gajim/gajim/commit/b60fe02680f34011b9cd6ae854ba690ae9a38be6
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits