Moved strings inside debug statement

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
This commit is contained in:
Andrew Murray 2025-01-16 23:48:44 +11:00 committed by GitHub
parent 7dcf4d8ab3
commit c67ed4678b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2202,11 +2202,15 @@ class AppendingTiffWriter(io.BytesIO):
if tag in self.Tags: if tag in self.Tags:
cur_pos = self.f.tell() cur_pos = self.f.tell()
tagname = TiffTags.lookup(tag).name logger.debug(
typname = TYPES.get(field_type, "unknown") "fixIFD: %s (%d) - type: %s (%d) - type size: %d - count: %d",
msg = f"fixIFD: {tagname} ({tag}) - type: {typname} ({field_type})" TiffTags.lookup(tag).name,
msg += f"- type size: {field_size} - count: {count}" tag,
logger.debug(msg) TYPES.get(field_type, "unknown"),
field_type,
field_size,
count,
)
if is_local: if is_local:
self._fixOffsets(count, field_size) self._fixOffsets(count, field_size)