From c8dc9bbc14f15dc677ed07e4711d2ba3bd69f0ec Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Wed, 22 Sep 2021 20:26:16 -0700 Subject: [PATCH] Small logging tweaks. --- fdroidapk.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fdroidapk.py b/fdroidapk.py index 193352f..2d56199 100644 --- a/fdroidapk.py +++ b/fdroidapk.py @@ -61,7 +61,7 @@ def download_file(url, path): @my_tenacity def get_apk_url(package_name): url = f'https://f-droid.org/en/packages/{package_name}' - log.debug('Downloading page %s', url) + log.debug('Downloading page %s.', url) response = session.get(url, timeout=30) response.raise_for_status() soup = bs4.BeautifulSoup(response.text, 'html.parser') @@ -102,6 +102,7 @@ def fpk_argparse(args): for package in packages: package = normalize_package_name(package) + log.info('Checking %s.', package) try: apk_url = get_apk_url(package) @@ -119,7 +120,7 @@ def fpk_argparse(args): this_dest = this_dest.with_child(apk_basename) if this_dest.exists: - log.info('%s exists.', this_dest.absolute_path) + log.debug('%s exists.', this_dest.absolute_path) continue log.info('Downloading %s.', this_dest.absolute_path)