chiark / gitweb /
Don't show INFO: when not doing verbose runs
authorDaniel Martí <mvdan@mvdan.cc>
Sun, 9 Feb 2014 11:39:43 +0000 (12:39 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Sun, 9 Feb 2014 11:39:43 +0000 (12:39 +0100)
fdroid

diff --git a/fdroid b/fdroid
index 75538aadd4bde21ab87a5d064061d25546a3e763..e71b6c28f15367c2d2b6c4c05d6a0af9b871f129 100755 (executable)
--- a/fdroid
+++ b/fdroid
@@ -58,8 +58,12 @@ def main():
 
     verbose = any(s in sys.argv for s in ['-v', '--verbose'])
 
-    logging.basicConfig(format='%(levelname)s: %(message)s',
-            level=logging.DEBUG if verbose else logging.INFO)
+    if verbose:
+        logging.basicConfig(format='%(levelname)s: %(message)s',
+                level=logging.DEBUG)
+    else:
+        logging.basicConfig(format='%(message)s',
+                level=logging.INFO)
 
     # Trick optparse into displaying the right usage when --help is used.
     sys.argv[0] += ' ' + command