From 945d8b126f7f28880cb4a83e1506a13d53de3495 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Mart=C3=AD?= Date: Tue, 18 Mar 2014 08:22:36 +0100 Subject: [PATCH] Properly use logging.warn in some places --- fdroidserver/common.py | 2 +- fdroidserver/import.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fdroidserver/common.py b/fdroidserver/common.py index 75139b28..80464afc 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -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 diff --git a/fdroidserver/import.py b/fdroidserver/import.py index ac5e5074..fe94d3fe 100644 --- a/fdroidserver/import.py +++ b/fdroidserver/import.py @@ -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): -- 2.30.2