X-Git-Url: http://git.maemo.org/git/?p=theonering;a=blobdiff_plain;f=src%2Ftheonering.py;h=1bc74364ebbdee4e8560aee46d473d148482e2cc;hp=23ad1ee4b18455f3601877482c898343ae59b7f5;hb=084301c9564dc4af08907cda1e01177e59e54afc;hpb=f289412744a4bc95f9b06beb2ed3a1fa5df4bfb1 diff --git a/src/theonering.py b/src/theonering.py index 23ad1ee..1bc7436 100755 --- a/src/theonering.py +++ b/src/theonering.py @@ -34,7 +34,7 @@ import constants import connection_manager -IDLE_TIMEOUT = 5000 +IDLE_TIMEOUT = 5 def run_theonering(persist): @@ -60,7 +60,7 @@ def run_theonering(persist): if persist: shutdown_callback = None else: - gobject.timeout_add(IDLE_TIMEOUT, timeout_cb) + gobject_utils.timeout_add_seconds(IDLE_TIMEOUT, timeout_cb) shutdown_callback = quit signal.signal(signal.SIGTERM, quit) @@ -101,7 +101,7 @@ def main(logToFile): format='(%(asctime)s) %(levelname)s:%(name)s:%(message)s', datefmt='%H:%M:%S', ) - logging.debug("telepathy-theonering %s-%s" % (constants.__version__, constants.__build__)) + logging.info("telepathy-theonering %s-%s" % (constants.__version__, constants.__build__)) logging.debug("OS: %s" % (os.uname()[0], )) logging.debug("Kernel: %s (%s) for %s" % os.uname()[2:]) logging.debug("Hostname: %s" % os.uname()[1])