From fb3ce12c9045118306605c2cab63c8e50717cb1b Mon Sep 17 00:00:00 2001 From: Mathieu Virbel Date: Mon, 29 Oct 2012 02:01:10 +0100 Subject: [PATCH] app: add more debug information. refs #714 --- kivy/app.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kivy/app.py b/kivy/app.py index 1b47d764c..b05ccd9a5 100644 --- a/kivy/app.py +++ b/kivy/app.py @@ -381,6 +381,7 @@ class App(EventDispatcher): if clsname.endswith('App'): clsname = clsname[:-3] filename = join(kv_directory, '%s.kv' % clsname.lower()) + Logger.debug('App: Loading kv <{0}>'.format(filename)) if not exists(filename): Logger.debug('App: kv <%s> not found' % filename) return False @@ -472,6 +473,7 @@ class App(EventDispatcher): filename = self.get_application_config() if filename is None: return config + Logger.debug('App: Loading configuration <{0}>'.format(filename)) if exists(filename): try: config.read(filename) @@ -481,6 +483,8 @@ class App(EventDispatcher): self.build_config(config) pass else: + Logger.debug('App: First configuration, create <{0}>'.format( + filename)) config.filename = filename config.write() return config