chiark
/
gitweb
/
~ianmdlvl
/
fdroidserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ec0de6b
)
Don't show INFO: when not doing verbose runs
author
Daniel Martí
<mvdan@mvdan.cc>
Sun, 9 Feb 2014 11:39:43 +0000
(12:39 +0100)
committer
Daniel Martí
<mvdan@mvdan.cc>
Sun, 9 Feb 2014 11:39:43 +0000
(12:39 +0100)
fdroid
patch
|
blob
|
history
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'])
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
# Trick optparse into displaying the right usage when --help is used.
sys.argv[0] += ' ' + command