Skip to content

Commit

Permalink
chore: Log incoming command headers
Browse files Browse the repository at this point in the history
  • Loading branch information
nidemidovich committed Nov 13, 2023
1 parent 38102c0 commit 5d583c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/api/endpoints/botx.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5d583c3

Please sign in to comment.