tecuts commited on
Commit
495a536
·
verified ·
1 Parent(s): 0d8cf7c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -123,6 +123,9 @@ def download_track(request: DownloadRequest):
123
 
124
  if not filepath:
125
  raise HTTPException(status_code=500, detail=f"{file_extension} file not found after download")
 
 
 
126
 
127
  # Return the download URL
128
  relative_path = os.path.relpath(filepath, "downloads")
 
123
 
124
  if not filepath:
125
  raise HTTPException(status_code=500, detail=f"{file_extension} file not found after download")
126
+ if filepath:
127
+ file_size = os.path.getsize(filepath)
128
+ logger.info(f"Downloaded file size: {file_size} bytes")
129
 
130
  # Return the download URL
131
  relative_path = os.path.relpath(filepath, "downloads")