Don't use logging.info with verbose ifs

This commit is contained in:
Daniel Martí 2014-06-22 21:28:33 +02:00
parent 0bce840571
commit 14f865a5b1
2 changed files with 2 additions and 4 deletions

View file

@ -90,8 +90,7 @@ def update_awsbucket(repo_section):
upload = True upload = True
if upload: if upload:
if options.verbose: logging.debug(' uploading "' + file_to_upload + '"...')
logging.info(' uploading "' + file_to_upload + '"...')
extra = {'acl': 'public-read'} extra = {'acl': 'public-read'}
if file_to_upload.endswith('.sig'): if file_to_upload.endswith('.sig'):
extra['content_type'] = 'application/pgp-signature' extra['content_type'] = 'application/pgp-signature'

View file

@ -363,8 +363,7 @@ def scan_apks(apps, apkcache, repodir, knownapks):
thisinfo = apkcache[apkfilename] thisinfo = apkcache[apkfilename]
else: else:
if options.verbose: logging.debug("Processing " + apkfilename)
logging.info("Processing " + apkfilename)
thisinfo = {} thisinfo = {}
thisinfo['apkname'] = apkfilename thisinfo['apkname'] = apkfilename
srcfilename = apkfilename[:-4] + "_src.tar.gz" srcfilename = apkfilename[:-4] + "_src.tar.gz"