[jhbuild] Log only ERRORs in quiet mode (GNOME bug 654466)



commit c6eba891698a956bdd026fd25cf3508fc4506358
Author: Craig Keogh <cskeogh adam com au>
Date:   Sat Jul 23 17:22:08 2011 +0930

    Log only ERRORs in quiet mode (GNOME bug 654466)

 jhbuild/config.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/jhbuild/config.py b/jhbuild/config.py
index 40978fb..17e9ec4 100644
--- a/jhbuild/config.py
+++ b/jhbuild/config.py
@@ -579,6 +579,7 @@ class Config:
         if k == 'quiet_mode' and v:
             try:
                 import curses
+                logging.getLogger().setLevel(logging.ERROR)
             except ImportError:
                 logging.warning(
                         _('quiet mode has been disabled because the Python curses module is missing.'))



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