Bumping to 0.8.0
[theonering] / src / channel / debug_log.py
index 2a1c188..b6325a9 100644 (file)
@@ -7,10 +7,10 @@ import telepathy
 
 import constants
 import tp
-import gtk_toolbox
+import util.misc as misc_utils
 
 
-_moduleLogger = logging.getLogger("channel.debug_log")
+_moduleLogger = logging.getLogger(__name__)
 
 
 class DebugLogChannel(tp.ChannelTypeFileTransfer):
@@ -79,7 +79,7 @@ class DebugLogChannel(tp.ChannelTypeFileTransfer):
        def get_initial_offset(self):
                return 0
 
-       @gtk_toolbox.log_exception(_moduleLogger)
+       @misc_utils.log_exception(_moduleLogger)
        def AcceptFile(self, addressType, accessControl, accessControlParam, offset):
                _moduleLogger.info("%r %r %r %r" % (addressType, accessControl, accessControlParam, offset))
                self.InitialOffsetDefined(0)
@@ -95,7 +95,7 @@ class DebugLogChannel(tp.ChannelTypeFileTransfer):
                        telepathy.constants.FILE_TRANSFER_STATE_CHANGE_REASON_NONE,
                )
 
-               sockittome = socket.socket(socket.AF_UNIT, socket.SOCK_STREAM)
+               sockittome = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
                sockittome.connect(accessControlParam)
                try:
                        sockittome.send(self._log)
@@ -111,11 +111,11 @@ class DebugLogChannel(tp.ChannelTypeFileTransfer):
                        telepathy.constants.FILE_TRANSFER_STATE_CHANGE_REASON_NONE,
                )
 
-       @gtk_toolbox.log_exception(_moduleLogger)
+       @misc_utils.log_exception(_moduleLogger)
        def ProvideFile(self, addressType, accessControl, accessControlParam):
                raise telepathy.errors.NotImplemented("Cannot send outbound files")
 
-       @gtk_toolbox.log_exception(_moduleLogger)
+       @misc_utils.log_exception(_moduleLogger)
        def Close(self):
                self.close()