diff options
author | Frederick Muriuki Muriithi | 2025-04-28 12:27:05 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2025-04-28 12:27:05 -0500 |
commit | 4304f23144f9dfc7c2ef678f6ffd66a5b2c86418 (patch) | |
tree | 8d7ee7ff193c322336ec0700a0958c05db859827 | |
parent | 479e0e88f37c715c83db8cb3090ce13e41d943fa (diff) | |
download | gn-uploader-4304f23144f9dfc7c2ef678f6ffd66a5b2c86418.tar.gz |
Add logging.
Without this logging statement, the chunk merging fails with an error that it cannot find one of the chunks when attempting to delete it. That error disappears as soon as I attempt to log out the error and debug.
-rw-r--r-- | uploader/files/views.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/uploader/files/views.py b/uploader/files/views.py index ddf5350..cebd325 100644 --- a/uploader/files/views.py +++ b/uploader/files/views.py @@ -56,6 +56,7 @@ def __merge_chunks__(targetfile: Path, chunkpaths: tuple[Path, ...]) -> Path: """Merge the chunks into a single file.""" with open(targetfile, "ab") as _target: for chunkfile in chunkpaths: + app.logger.error("Merging chunk: %s", chunkfile) with open(chunkfile, "rb") as _chunkdata: _target.write(_chunkdata.read()) |