From e70166efc284a1a0738c9ce206c4655c38b7b3e3 Mon Sep 17 00:00:00 2001 From: Vonter <25414711+Vonter@users.noreply.github.com> Date: Sun, 27 Jun 2021 17:43:09 +0530 Subject: [PATCH] Fix logged filename for locally cached file --- src/pystitcher/stitcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pystitcher/stitcher.py b/src/pystitcher/stitcher.py index 1c8157a..d099fdd 100644 --- a/src/pystitcher/stitcher.py +++ b/src/pystitcher/stitcher.py @@ -61,7 +61,7 @@ class Stitcher: with urllib.request.urlopen(url) as response, open(os.path.basename(url), 'wb') as downloadedFile: shutil.copyfileobj(response, downloadedFile) else: - _logger.info("Locally cached PDF found at %s", url) + _logger.info("Locally cached PDF found at %s", os.path.basename(url)) return os.path.basename(url) """