dbus: use the logging class too

pull/1/head
Peter Hutterer 2018-01-15 14:24:56 +10:00
parent 285c7991bc
commit f293ef6e14
1 changed files with 5 additions and 0 deletions

View File

@ -11,11 +11,15 @@
# GNU General Public License for more details.
#
import logging
import sys
import json
from gi.repository import GObject, Gio, GLib
logging.basicConfig(level=logging.DEBUG)
logger = logging.getLogger('dbus')
INTROSPECTION_XML = """
<node>
<interface name='org.freedesktop.tuhi1.Manager'>
@ -180,6 +184,7 @@ class TuhiDBusServer(GObject.Object):
self._connection = connection
def _bus_name_aquired(self, connection, name):
logger.debug('Bus name aquired')
self.emit('bus-name-acquired')
def _bus_name_lost(self, connection, name):