Add a way to enable/disable displaying debug messages

This commit is contained in:
Marco Pesenti Gritti
2006-08-11 17:05:06 +02:00
parent 884eef4bd5
commit 9585330e43
4 changed files with 68 additions and 18 deletions
+3
View File
@@ -1,4 +1,5 @@
import os
import logging
import dbus
import dbus.service
@@ -134,6 +135,8 @@ class Activity(gtk.Window):
def share(self):
"""Share the activity on the network."""
logging.debug('Share activity %s on the network.' % self.get_id())
properties = { 'title' : self.get_title() }
self._service = self._pservice.share_activity(self,
self._default_type, properties)