mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 22:42:29 +03:00
Don't show INFO: when not doing verbose runs
This commit is contained in:
parent
ec0de6b370
commit
d949b9ffbb
1 changed files with 6 additions and 2 deletions
6
fdroid
6
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'])
|
||||||
|
|
||||||
|
if verbose:
|
||||||
logging.basicConfig(format='%(levelname)s: %(message)s',
|
logging.basicConfig(format='%(levelname)s: %(message)s',
|
||||||
level=logging.DEBUG if verbose else logging.INFO)
|
level=logging.DEBUG)
|
||||||
|
else:
|
||||||
|
logging.basicConfig(format='%(message)s',
|
||||||
|
level=logging.INFO)
|
||||||
|
|
||||||
# Trick optparse into displaying the right usage when --help is used.
|
# Trick optparse into displaying the right usage when --help is used.
|
||||||
sys.argv[0] += ' ' + command
|
sys.argv[0] += ' ' + command
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue