From 02dba0738cfcb2649a6795042df83338aca0c36c Mon Sep 17 00:00:00 2001 From: Untone Date: Sat, 28 Sep 2024 10:31:48 +0300 Subject: [PATCH] normalized-log-fix3 --- bot/api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bot/api.py b/bot/api.py index 6dc1562..024cae2 100644 --- a/bot/api.py +++ b/bot/api.py @@ -47,6 +47,7 @@ async def download_file(file_id): async with aiofiles.tempfile.NamedTemporaryFile(delete=True) as temp_file: await temp_file.write(await response.read()) await temp_file.flush() + logger.error(f"download file: {temp_file.name }") yield temp_file.name # Yield the path of the temporary file else: logger.error(f"Failed to download file: {response.status}") \ No newline at end of file