From e046da311cbb025627576ed34c169c0c2ee4050d Mon Sep 17 00:00:00 2001 From: Cody Logan Date: Tue, 7 Nov 2023 13:08:16 -0800 Subject: Improve logging optimization Defer string formatting until needed by removing f-strings in log messages. --- src/wikiget/parse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/wikiget/parse.py') 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 -- cgit v1.2.3