Skip to content

Commit

Permalink
Update fileuploads_endpoint.py
Browse files Browse the repository at this point in the history
fix size unit when logging fileUpload
  • Loading branch information
KulykDmytro authored Jan 21, 2025
1 parent 42cecfe commit 60dbd28
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 60dbd28

Please sign in to comment.