normalized-log-fix4
This commit is contained in:
parent
02dba0738c
commit
71e8f74be6
|
@ -6,7 +6,7 @@ from bot.config import BOT_TOKEN
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
# Create a logger instance
|
# Create a logger instance
|
||||||
logger = logging.getLogger(" [bot.api] ")
|
logger = logging.getLogger(" bot.api ")
|
||||||
|
|
||||||
api_base = f"https://api.telegram.org/bot{BOT_TOKEN}/"
|
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 }")
|
logger.error(f"download file: {temp_file.name }")
|
||||||
yield temp_file.name # Yield the path of the temporary file
|
yield temp_file.name # Yield the path of the temporary file
|
||||||
else:
|
else:
|
||||||
logger.error(f"Failed to download file: {response.status}")
|
logger.error(f"Failed to download file: {response}")
|
Loading…
Reference in New Issue
Block a user