Skip to content

Commit

Permalink
Fixed incorrect size unit when logging fileUpload (#1560)
Browse files Browse the repository at this point in the history
Update fileuploads_endpoint.py

fix size unit when logging fileUpload

Co-authored-by: Jac <[email protected]>
  • Loading branch information
KulykDmytro and jacalata authored Jan 22, 2025
1 parent 3275925 commit 1912806
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ def upload(self, file):
request, content_type = RequestFactory.Fileupload.chunk_req(chunk)
logger.debug(f"{datetime.timestamp()} created chunk request")
fileupload_item = self.append(upload_id, request, content_type)
logger.info(f"\t{datetime.timestamp()} Published {(fileupload_item.file_size / BYTES_PER_MB)}MB")
logger.info(f"\t{datetime.timestamp()} Published {fileupload_item.file_size}MB")
logger.info(f"File upload finished (ID: {upload_id})")
return upload_id

0 comments on commit 1912806

Please sign in to comment.