normalized-log-fix4

This commit is contained in:
Untone 2024-09-28 10:34:09 +03:00
parent 02dba0738c
commit 71e8f74be6

View File

@ -6,7 +6,7 @@ from bot.config import BOT_TOKEN
import logging
# Create a logger instance
logger = logging.getLogger(" [bot.api] ")
logger = logging.getLogger(" bot.api ")
api_base = f"https://api.telegram.org/bot{BOT_TOKEN}/"
@ -50,4 +50,4 @@ async def download_file(file_id):
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}")
logger.error(f"Failed to download file: {response}")