From 4304f23144f9dfc7c2ef678f6ffd66a5b2c86418 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 28 Apr 2025 12:27:05 -0500 Subject: 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. --- uploader/files/views.py | 1 + 1 file changed, 1 insertion(+) (limited to 'uploader/files/views.py') 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()) -- cgit v1.2.3