refactor: debug webhook

This commit is contained in:
hieptl 2025-10-02 22:59:25 +07:00
parent c932cd0815
commit 1bbf93aeb2

View File

@ -149,6 +149,13 @@ async def on_batch_write(
background_tasks: BackgroundTasks,
x_session_api_key: Annotated[str | None, Header()],
):
logger.info(
'batch_write_webhook',
extra={
'batch_ops': batch_ops,
'x_session_api_key': x_session_api_key,
},
)
"""Handle batched webhook requests with multiple file operations in background"""
# Add the batch processing to background tasks
background_tasks.add_task(