Skip to content

Commit c82faa8

Browse files
committed
Use quotes consistently in log messages
1 parent 47e4465 commit c82faa8

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/pdfbaker/baker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def _teardown_build_directories(self, doc_names: list[str]) -> None:
116116
except OSError:
117117
# Directory not empty (might contain subdirectories)
118118
self.logger.warning(
119-
"Build directory of document not empty, keeping: %s",
119+
"Build directory of document not empty, keeping %s",
120120
doc_build_dir,
121121
)
122122

@@ -127,5 +127,5 @@ def _teardown_build_directories(self, doc_names: list[str]) -> None:
127127
except OSError:
128128
# Directory not empty
129129
self.logger.warning(
130-
"Build directory not empty, keeping: %s", self.build_dir
130+
"Build directory not empty, keeping %s", self.build_dir
131131
)

src/pdfbaker/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def combine_pdfs(
101101
if str(exc) == "'/Subtype'":
102102
# PDF has broken annotations with missing /Subtype
103103
logger.warning(
104-
"PDF %s has broken annotations. "
104+
"Broken annotations in PDF: %s"
105105
"Falling back to page-by-page method.",
106106
pdf_file,
107107
)

src/pdfbaker/document.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def process(self) -> None:
168168
if "variants" in self.config:
169169
# Multiple PDF documents
170170
for variant in self.config["variants"]:
171-
self.baker.info("Processing variant: %s", variant["name"])
171+
self.baker.info('Processing variant "%s"', variant["name"])
172172
variant_config = deep_merge(doc_config, variant)
173173
variant_config["variant"] = variant
174174
variant_config = resolve_config(variant_config)

0 commit comments

Comments
 (0)