chiark / gitweb /
update: improved logging
authorHans-Christoph Steiner <hans@eds.org>
Mon, 15 May 2017 17:48:20 +0000 (19:48 +0200)
committerHans-Christoph Steiner <hans@eds.org>
Thu, 18 May 2017 14:13:17 +0000 (16:13 +0200)
the aapt warnings were very verbose, and the other now includes the
file name type for screenshots, rather than the filename twice.

fdroidserver/update.py

index 41d0bd143375c88954b60492a1230502af7cb644..4d9777b835fda63f32c91c2abf27ccd470d3190e 100644 (file)
@@ -783,7 +783,7 @@ def insert_localized_app_metadata(apps):
                 graphics[base] = filename
             elif screenshotdir in SCREENSHOT_DIRS:
                 # there can any number of these per locale
-                logging.debug('adding ' + base + ':' + f)
+                logging.debug('adding to ' + screenshotdir + ': ' + f)
                 if screenshotdir not in graphics:
                     graphics[screenshotdir] = []
                 graphics[screenshotdir].append(filename)
@@ -1126,10 +1126,8 @@ def scan_apk(apkcache, apkfilename, repodir, knownapks, use_date_from_apk):
 
         try:
             if common.set_command_in_config('aapt'):
-                logging.warning("Using AAPT for metadata")
                 scan_apk_aapt(apk, apkfile)
             else:
-                logging.warning("Using androguard for metadata")
                 scan_apk_androguard(apk, apkfile)
         except BuildException:
             return True, None, False