Skip to content

Commit

Permalink
Add logging to troubleshoot attachment file truncation
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel McKnight committed Jul 4, 2024
1 parent c5c7aa5 commit 6862e10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def _parse_attachments(files: list) -> dict:
f.seek(0)
f.write(trunc)
f.truncate()

LOG.debug(f"{file} is {getsize(file)/1024} MiB")
attachments[basename(file).replace('.log', '_log.txt')] = \
encode_file_to_base64_string(file)
except Exception as e:
Expand Down

0 comments on commit 6862e10

Please sign in to comment.