From: Neil Date: Sun, 14 Apr 2013 14:05:14 +0000 (+0200) Subject: Add some code for silencing some of kivy's loggin X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=df49c5d20f821b566981248725ba23cb10858655;p=erdslangetjie.git Add some code for silencing some of kivy's loggin --- diff --git a/erdslangetjie/editor/editor.py b/erdslangetjie/editor/editor.py index ffff296..998ad40 100644 --- a/erdslangetjie/editor/editor.py +++ b/erdslangetjie/editor/editor.py @@ -6,6 +6,7 @@ from erdslangetjie.data import filepath, load kivy.require('1.6.0') from kivy.app import App +from kivy.logger import Logger, LoggerHistory from kivy.uix.widget import Widget @@ -43,6 +44,10 @@ def main(): level = sys.argv[1] else: level = 'level1.txt' + # Uncomment to silence excessive logging + #for hdlr in Logger.handlers[:]: + # if not isinstance(hdlr, LoggerHistory): + # Logger.removeHandler(hdlr) EditorApp(level).run()