Mercurial > libervia-desktop-kivy
changeset 7:5ebe1592a05a
core (logs): forbid kivy to handle stderr itself
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 08 Jul 2016 18:30:28 +0200 |
parents | 85649eca9f9b |
children | d9095d1dd7ae |
files | src/logging_setter.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/logging_setter.py Thu Jul 07 09:39:21 2016 +0200 +++ b/src/logging_setter.py Fri Jul 08 18:30:28 2016 +0200 @@ -52,6 +52,9 @@ # we want to separate kivy logs from other logs logging.root = root_logger + import sys + from kivy import logger + sys.stderr = logger.previous_stderr # we restore original methods kivy_logger.addHandler = ori_addHandler