X-Git-Url: http://git.maemo.org/git/?p=theonering;a=blobdiff_plain;f=src%2Ftheonering.py;h=49a173fe55ce55c50fc642f4d75f5f68eebe0c2a;hp=de0f8c0a42b554818e055a5ab6ce1a1fc926f07e;hb=e31b65ea26b238366776d0f9d7d857a5a4775fae;hpb=69291b6ea410825bc288f4071e4a2bd200bdac2e diff --git a/src/theonering.py b/src/theonering.py index de0f8c0..49a173f 100755 --- a/src/theonering.py +++ b/src/theonering.py @@ -34,7 +34,7 @@ import constants import connection_manager -IDLE_TIMEOUT = 5 +IDLE_TIMEOUT = 10 def run_theonering(persist): @@ -73,6 +73,8 @@ def run_theonering(persist): mainloop = gobject.MainLoop(is_running=True) + gobject.threads_init() + dbus.glib.init_threads() while mainloop.is_running(): try: mainloop.run() @@ -88,17 +90,18 @@ def main(logToFile): raise telepathy_utils.debug_divert_messages(os.getenv('THEONERING_LOGFILE')) + logFormat = '(%(asctime)s) %(levelname)-5s %(threadName)s.%(name)s: %(message)s' if logToFile: logging.basicConfig( level=logging.DEBUG, filename=constants._user_logpath_, - format='(%(asctime)s) %(levelname)s:%(name)s:%(message)s', + format=logFormat, datefmt='%H:%M:%S', ) else: logging.basicConfig( - level=logging.INFO, - format='(%(asctime)s) %(levelname)s:%(name)s:%(message)s', + level=logging.DEBUG, + format=logFormat, datefmt='%H:%M:%S', ) logging.info("telepathy-theonering %s-%s" % (constants.__version__, constants.__build__))