From 24dbc5197335d1c44b18364226a497886dbe7fe6 Mon Sep 17 00:00:00 2001 From: Nikita Demidovich Date: Mon, 13 Nov 2023 18:18:47 +0300 Subject: [PATCH] chore: Log incoming command headers --- app/api/endpoints/botx.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/api/endpoints/botx.py b/app/api/endpoints/botx.py index 3d887d4..a5e2863 100644 --- a/app/api/endpoints/botx.py +++ b/app/api/endpoints/botx.py @@ -22,6 +22,7 @@ @router.post("/command") async def command_handler(request: Request, bot: Bot = bot_dependency) -> JSONResponse: """Receive commands from users. Max timeout - 5 seconds.""" + logger.debug(f"Command headers: {request.headers}") try: bot.async_execute_raw_bot_command(await request.json()) except UnknownSystemEventError as unknown_event_exc: