From: Daniel Martí Date: Sun, 9 Feb 2014 11:39:43 +0000 (+0100) Subject: Don't show INFO: when not doing verbose runs X-Git-Tag: 0.2~316 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=d949b9ffbbfa5b958e2a28a1464c8dce192b95d3;p=fdroidserver.git Don't show INFO: when not doing verbose runs --- diff --git a/fdroid b/fdroid index 75538aad..e71b6c28 100755 --- 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