Skip to content

Commit 1554a54

Browse files
committed
feat: improve logging
1 parent b0dc729 commit 1554a54

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

imgsync/distros/base.py

+2
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ def _download_one(self, url, checksum):
6666
:param checksum: tuple in the form (checksum_name, checksum_value)
6767
:returns: temporary file object
6868
"""
69+
LOG.info("Downloading %s", url)
70+
6971
with tempfile.NamedTemporaryFile(suffix=".imgsync", delete=False) as location:
7072
try:
7173
response = requests.get(url, stream=True, timeout=10)

imgsync/distros/debian.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def _sync_latest(self):
7878
LOG.error("Could not find checksum for %s" % filename)
7979
return
8080

81-
LOG.info("Downloading %s", filename)
81+
LOG.info("Syncing %s", filename)
8282

8383
url = base_url + filename
8484
architecture = "x86_64"

imgsync/distros/ubuntu.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ def url(self):
5656
def _sync_latest(self):
5757
"""Sync the latest image."""
5858
filename = self.filename
59-
LOG.info("Downloading %s", filename)
59+
60+
LOG.info("Syncing %s", filename)
61+
6062
base_url = self.url + "current/"
6163
checksum_file = base_url + "SHA256SUMS"
6264
checksum_file = requests.get(checksum_file, timeout=10)

0 commit comments

Comments
 (0)