import handle
-_moduleLogger = logging.getLogger('aliasing')
+_moduleLogger = logging.getLogger(__name__)
def _make_pretty_with_areacodde(phonenumber):
import gvoice
-_moduleLogger = logging.getLogger("autogv")
+_moduleLogger = logging.getLogger(__name__)
class NewGVConversations(object):
import util.misc as misc_utils
-_moduleLogger = logging.getLogger('avatars')
+_moduleLogger = logging.getLogger(__name__)
class AvatarsMixin(tp.server.ConnectionInterfaceAvatars):
import util.misc as misc_utils
-_moduleLogger = logging.getLogger('capabilities')
+_moduleLogger = logging.getLogger(__name__)
class CapabilitiesMixin(tp.ConnectionInterfaceCapabilities):
import logging
import dbus
-import gobject
import telepathy
import tp
import util.misc as misc_utils
-_moduleLogger = logging.getLogger("channel.call")
+_moduleLogger = logging.getLogger(__name__)
class CallChannel(
import handle
-_moduleLogger = logging.getLogger("channel.contact_list")
+_moduleLogger = logging.getLogger(__name__)
class AllContactsListChannel(
import util.misc as misc_utils
-_moduleLogger = logging.getLogger("channel.debug_log")
+_moduleLogger = logging.getLogger(__name__)
class DebugLogChannel(tp.ChannelTypeFileTransfer):
import gvoice
-_moduleLogger = logging.getLogger("channel.debug_prompt")
+_moduleLogger = logging.getLogger(__name__)
class DebugPromptChannel(tp.ChannelTypeText, cmd.Cmd):
import gvoice
-_moduleLogger = logging.getLogger("channel.text")
+_moduleLogger = logging.getLogger(__name__)
class TextChannel(tp.ChannelTypeText):
import util.misc as misc_utils
-_moduleLogger = logging.getLogger("channel_manager")
+_moduleLogger = logging.getLogger(__name__)
class ChannelManager(tp.ChannelManager):
import channel_manager
-_moduleLogger = logging.getLogger("connection")
+_moduleLogger = logging.getLogger(__name__)
class TheOneRingOptions(object):
publishHandle = self.get_handle_by_name(telepathy.HANDLE_TYPE_LIST, "publish")
publishProps = self.generate_props(telepathy.CHANNEL_TYPE_CONTACT_LIST, publishHandle, False)
self.__channelManager.channel_for_props(publishProps, signal=True)
- except gvoice.backend.NetworkError, e:
+ except gvoice.backend.NetworkError:
_moduleLogger.exception("Connection Failed")
self.disconnect(telepathy.CONNECTION_STATUS_REASON_NETWORK_ERROR)
return
- except Exception, e:
+ except Exception:
_moduleLogger.exception("Connection Failed")
self.disconnect(telepathy.CONNECTION_STATUS_REASON_AUTHENTICATION_FAILED)
return
import connection
-_moduleLogger = logging.getLogger("connection_manager")
+_moduleLogger = logging.getLogger(__name__)
class TheOneRingConnectionManager(tp.ConnectionManager):
import util.misc as misc_utils
-_moduleLogger = logging.getLogger('contacts')
+_moduleLogger = logging.getLogger(__name__)
class ContactsMixin(telepathy.server.ConnectionInterfaceContacts):
import util.misc as misc_utils
-_moduleLogger = logging.getLogger("gvoice.addressbook")
+_moduleLogger = logging.getLogger(__name__)
class Addressbook(object):
import browser_emu
-_moduleLogger = logging.getLogger("gvoice.backend")
+_moduleLogger = logging.getLogger(__name__)
class NetworkError(RuntimeError):
import socket
-_moduleLogger = logging.getLogger("gvoice.browser_emu")
+_moduleLogger = logging.getLogger(__name__)
socket.setdefaulttimeout(20)
import util.misc as misc_utils
-_moduleLogger = logging.getLogger("gvoice.conversations")
+_moduleLogger = logging.getLogger(__name__)
class Conversations(object):
import state_machine
-_moduleLogger = logging.getLogger("gvoice.session")
+_moduleLogger = logging.getLogger(__name__)
class Session(object):
import util.misc as misc_utils
-_moduleLogger = logging.getLogger("gvoice.state_machine")
+_moduleLogger = logging.getLogger(__name__)
def to_milliseconds(**kwd):
import util.misc as misc_utils
-_moduleLogger = logging.getLogger("handle")
+_moduleLogger = logging.getLogger(__name__)
class TheOneRingHandle(tp.Handle):
import util.misc as misc_utils
-_moduleLogger = logging.getLogger('location')
+_moduleLogger = logging.getLogger(__name__)
#class LocationMixin(tp.ConnectionInterfaceLocation):
import simple_presence
-_moduleLogger = logging.getLogger('presence')
+_moduleLogger = logging.getLogger(__name__)
class PresenceMixin(tp.ConnectionInterfacePresence, simple_presence.TheOneRingPresence):
import tp
-_moduleLogger = logging.getLogger('requests')
+_moduleLogger = logging.getLogger(__name__)
class RequestsMixin(tp.ConnectionInterfaceRequests):
import gvoice.state_machine as state_machine
-_moduleLogger = logging.getLogger("simple_presence")
+_moduleLogger = logging.getLogger(__name__)
class TheOneRingPresence(object):
)
else:
logging.basicConfig(
- level=logging.INFO,
+ level=logging.DEBUG,
format='(%(asctime)s) %(levelname)s:%(name)s:%(message)s',
datefmt='%H:%M:%S',
)