add error trace to file download errors (#4503)
This commit is contained in:
@@ -251,10 +251,10 @@ async def download_file(
|
|||||||
LOG.info(f"File downloaded successfully to {file_path}")
|
LOG.info(f"File downloaded successfully to {file_path}")
|
||||||
return file_path
|
return file_path
|
||||||
except aiohttp.ClientResponseError as e:
|
except aiohttp.ClientResponseError as e:
|
||||||
LOG.error(f"Failed to download file, status code: {e.status}")
|
LOG.exception(f"Failed to download file, status code: {e.status}")
|
||||||
raise
|
raise
|
||||||
except DownloadFileMaxSizeExceeded as e:
|
except DownloadFileMaxSizeExceeded as e:
|
||||||
LOG.error(f"Failed to download file, max size exceeded: {e.max_size}")
|
LOG.exception(f"Failed to download file, max size exceeded: {e.max_size}")
|
||||||
raise
|
raise
|
||||||
except Exception:
|
except Exception:
|
||||||
LOG.exception("Failed to download file")
|
LOG.exception("Failed to download file")
|
||||||
|
|||||||
Reference in New Issue
Block a user