Demote log message when xdg is missing from error to warning
authorWade Berrier <wberrier@gmail.com>
Sat, 26 Jan 2013 03:41:51 +0000 (20:41 -0700)
committerWade Berrier <wberrier@gmail.com>
Tue, 5 Feb 2013 04:09:14 +0000 (21:09 -0700)
Otherwise the log messages clutter up the mutt screen

mutt_ldap.py

index e3eda984230cd5156958e8ff04106139dc06c555..d3430826bdcb0dd29dd35d39e03d9c652adc5bc3 100755 (executable)
@@ -118,8 +118,9 @@ class Config (_configparser.SafeConfigParser):
     def _log_xdg_import_error(self):
         global _xdg_import_error
         if _xdg_import_error:
-            LOG.error(u'could not import xdg.BaseDirectory')
-            LOG.error(_xdg_import_error)
+            LOG.warning(u'could not import xdg.BaseDirectory '
+                u'or lacking necessary support')
+            LOG.warning(_xdg_import_error)
             _xdg_import_error = None