Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar
This commit is contained in:
commit
8950e0e355
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user