chiark / gitweb /
Properly use logging.warn in some places
authorDaniel Martí <mvdan@mvdan.cc>
Tue, 18 Mar 2014 07:22:36 +0000 (08:22 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Tue, 18 Mar 2014 07:22:36 +0000 (08:22 +0100)
fdroidserver/common.py
fdroidserver/import.py

index 75139b28711b58e4d100e879e6c02576fffadd46..80464afca25f7e6cc659ea10eb1da3da5c3e380d 100644 (file)
@@ -1186,7 +1186,7 @@ def scan_source(build_dir, root_dir, thisbuild):
             problems.append('Found %s at %s' % (what, fd))
 
     def warnproblem(what, fd, fp):
-        logging.info('Warning: Found %s at %s' % (what, fd))
+        logging.warn('Found %s at %s' % (what, fd))
 
     def insidedir(path, dirname):
         return path.endswith('/%s' % dirname) or '/%s/' % dirname in path
index ac5e5074f4ce569369bebaa7d87e88243d9779e5..fe94d3fe07dc4548136037b3898d1f3cd30fdc96 100644 (file)
@@ -243,9 +243,9 @@ def main():
             logging.info("Couldn't find package ID")
             sys.exit(1)
         if not version:
-            logging.info("WARNING: Couldn't find latest version name")
+            logging.warn("Couldn't find latest version name")
         if not vercode:
-            logging.info("WARNING: Couldn't find latest version code")
+            logging.warn("Couldn't find latest version code")
     else:
         spec = os.path.join(root_dir, 'buildozer.spec')
         if os.path.exists(spec):