[library-web] improve debugging messages



commit aecd416bf35adcb48a1dee630b24df0bf9f82769
Author: Frédéric Péters <fpeters 0d be>
Date:   Wed Jan 29 18:30:19 2014 +0000

    improve debugging messages

 src/lgo.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/lgo.py b/src/lgo.py
index f8fbb60..7541cb0 100755
--- a/src/lgo.py
+++ b/src/lgo.py
@@ -717,12 +717,13 @@ class Lgo(App):
                     try:
                         gnome_help_doc = [x for x in app.documents if x.module == 'gnome-help'][0]
                     except IndexError:
-                        pass
+                        logging.debug('failed combining documents (%s, %s) (missing gnome-help)' % (
+                                doc.one_dot_version, lang))
                     else:
                         try:
                             gnome_help_doc.version_subs.get(doc.one_dot_version).extend_mallard(doc)
                         except AttributeError:
-                            logging.debug('failed combining documents (%s, %s)' % (
+                            logging.debug('failed combining documents (%s, %s) (missing version)' % (
                                     doc.one_dot_version, lang))
                             continue
                         logging.debug('extending gnome-help with gnome-getting-started-docs %s (%s)' % (


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]