perf/delete log output

This commit is contained in:
SouthFox 2023-03-19 16:43:33 +08:00
parent fed6c1fa8f
commit 8b30b66799

View file

@ -48,13 +48,13 @@ async def inbox_prechecker(
).one_or_none() ).one_or_none()
): ):
logger.info(f"Dropping unnecessary delete activity {payload=}") logger.info(f"Dropping unnecessary delete activity " +
payload["actor"])
raise fastapi.HTTPException(status_code=202) raise fastapi.HTTPException(status_code=202)
except fastapi.HTTPException as http_exc: except fastapi.HTTPException as http_exc:
raise http_exc raise http_exc
except Exception: except Exception:
logger.exception("Failed to precheck delete activity") logger.exception("Failed to precheck delete activity")
return False
actor_url = payload["actor"] actor_url = payload["actor"]
async with httpx.AsyncClient() as client: async with httpx.AsyncClient() as client: