log-fmt
This commit is contained in:
parent
52c791a63d
commit
cbe3e0adec
3
main.py
3
main.py
|
@ -36,7 +36,8 @@ async def start():
|
|||
logger.error(e)
|
||||
import traceback
|
||||
text = traceback.format_exc()
|
||||
await telegram_api("sendMessage", chat_id=FEEDBACK_CHAT_ID, text=text)
|
||||
formatted_text = f"```log\n{text}```"
|
||||
await telegram_api("sendMessage", chat_id=FEEDBACK_CHAT_ID, text=formatted_text, parse_mode='MarkdownV2')
|
||||
|
||||
offset = update["update_id"] + 1
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user