From b60fe02680f34011b9cd6ae854ba690ae9a38be6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Philipp=20H=C3=B6rist?= <forenjunkie@chello.at>
Date: Fri, 22 Sep 2017 00:06:35 +0200
Subject: [PATCH] Use own module logger for connection_zeroconf

---
 gajim/common/zeroconf/connection_zeroconf.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/gajim/common/zeroconf/connection_zeroconf.py b/gajim/common/zeroconf/connection_zeroconf.py
index 10220a6e1a..5eeb029c25 100644
--- 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)
-- 
GitLab