mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-12-23 23:57:51 -05:00
Don't show INFO: when not doing verbose runs
This commit is contained in:
8
fdroid
8
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
|
||||
|
||||
Reference in New Issue
Block a user