Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar

This commit is contained in:
Marco Pesenti Gritti 2006-09-11 13:13:35 +02:00
commit 8950e0e355

View File

@ -109,6 +109,9 @@ def start(console_id, console = None):
root_logger = logging.getLogger('') root_logger = logging.getLogger('')
root_logger.setLevel(logging.DEBUG) root_logger.setLevel(logging.DEBUG)
root_logger.addHandler(Handler(queue)) root_logger.addHandler(Handler(queue))
fileh = logging.FileHandler('/tmp/sugar.log')
fileh.setFormatter(logging.Formatter("""[%(asctime)s] %(message)s"""))
root_logger.addHandler(fileh)
global __queue global __queue
__queue = queue __queue = queue