dbus: use the logging class too
This commit is contained in:
parent
285c7991bc
commit
f293ef6e14
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue