aboutsummaryrefslogtreecommitdiff
path: root/src/wikiget/parse.py
diff options
context:
space:
mode:
authorCody Logan <cody@lokken.dev>2023-11-07 13:08:16 -0800
committerCody Logan <cody@lokken.dev>2023-11-07 13:08:16 -0800
commite046da311cbb025627576ed34c169c0c2ee4050d (patch)
tree3cfeed9e3e499ac4495bb9c09a005b99492e2241 /src/wikiget/parse.py
parentf9db4a3a9c56c911d5084f0ff945631961f6c256 (diff)
downloadwikiget-e046da311cbb025627576ed34c169c0c2ee4050d.tar.gz
wikiget-e046da311cbb025627576ed34c169c0c2ee4050d.zip
Improve logging optimization
Defer string formatting until needed by removing f-strings in log messages.
Diffstat (limited to 'src/wikiget/parse.py')
-rw-r--r--src/wikiget/parse.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wikiget/parse.py b/src/wikiget/parse.py
index 892f0f0..abe1419 100644
--- a/src/wikiget/parse.py
+++ b/src/wikiget/parse.py
@@ -65,7 +65,7 @@ def read_batch_file(batch_file: str) -> Dict[int, str]:
if batch_file == "-":
logger.info("Using stdin for batch download")
else:
- logger.info(f"Using file '{batch_file}' for batch download")
+ logger.info("Using file '%s' for batch download", batch_file)
with fileinput.input(batch_file) as fd:
# read the file into memory and process each line as we go