Skip to content

Commit

Permalink
Moved strings inside debug statement
Browse files Browse the repository at this point in the history
Co-authored-by: Hugo van Kemenade <[email protected]>
  • Loading branch information
radarhere and hugovk authored Jan 16, 2025
1 parent 7dcf4d8 commit c67ed46
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/PIL/TiffImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -2202,11 +2202,15 @@ def fixIFD(self) -> None:
if tag in self.Tags:
cur_pos = self.f.tell()

tagname = TiffTags.lookup(tag).name
typname = TYPES.get(field_type, "unknown")
msg = f"fixIFD: {tagname} ({tag}) - type: {typname} ({field_type})"
msg += f"- type size: {field_size} - count: {count}"
logger.debug(msg)
logger.debug(
"fixIFD: %s (%d) - type: %s (%d) - type size: %d - count: %d",
TiffTags.lookup(tag).name,
tag,
TYPES.get(field_type, "unknown"),
field_type,
field_size,
count,
)

Check warning on line 2214 in src/PIL/TiffImagePlugin.py

View check run for this annotation

Codecov / codecov/patch

src/PIL/TiffImagePlugin.py#L2214

Added line #L2214 was not covered by tests
if is_local:
self._fixOffsets(count, field_size)
Expand Down

0 comments on commit c67ed46

Please sign in to comment.