[gnome-keysign] i18n: log with info rather than exception



commit cdd747788832ea883ca838e4e7400ce0f007ea24
Author: Tobias Mueller <muelli cryptobitch de>
Date:   Thu Jan 3 20:10:06 2019 +0100

    i18n: log with info rather than exception
    
    This seems to be a quite normal case. Having the exception there looks
    weird. Let's reduce the visual noise by making it an info log.

 keysign/i18n.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/keysign/i18n.py b/keysign/i18n.py
index 1aa7e29..3af4b83 100644
--- a/keysign/i18n.py
+++ b/keysign/i18n.py
@@ -41,7 +41,7 @@ log.debug (_("Translated for gettext (C)"))
 try:
     _ = lang.ugettext
 except AttributeError:
-    log.exception("Cannot get ugettext from lang: %r", lang)
+    log.info("Cannot get ugettext from lang: %r", lang, exc_info=True)
 
 # TRANSLATORS: Please include your locale, e.g. "de". We're trying to debug pure python gettext
 log.debug (_("Translated for Python (C)"))


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