From df49c5d20f821b566981248725ba23cb10858655 Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 14 Apr 2013 16:05:14 +0200 Subject: [PATCH] Add some code for silencing some of kivy's loggin --- erdslangetjie/editor/editor.py | 5 +++++ 1 file changed, 5 insertions(+) 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() -- 2.34.1