mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-12 19:05:18 +00:00
Enhance logging context in github_app server with server type
This commit is contained in:
parent
c324d88be3
commit
83e670c5df
1 changed files with 1 additions and 1 deletions
|
|
@ -78,7 +78,7 @@ async def handle_request(body: Dict[str, Any], event: str):
|
||||||
agent = PRAgent()
|
agent = PRAgent()
|
||||||
bot_user = get_settings().github_app.bot_user
|
bot_user = get_settings().github_app.bot_user
|
||||||
sender = body.get("sender", {}).get("login")
|
sender = body.get("sender", {}).get("login")
|
||||||
log_context = {"action": action, "event": event, "sender": sender}
|
log_context = {"action": action, "event": event, "sender": sender, "server_type": "github_app"}
|
||||||
|
|
||||||
if get_settings().github_app.duplicate_requests_cache and _is_duplicate_request(body):
|
if get_settings().github_app.duplicate_requests_cache and _is_duplicate_request(body):
|
||||||
return {}
|
return {}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue