Enhance logging context in github_app server with server type

This commit is contained in:
Ori Kotek
2023-10-16 16:13:09 +03:00
parent c324d88be3
commit 83e670c5df

View File

@ -78,7 +78,7 @@ async def handle_request(body: Dict[str, Any], event: str):
agent = PRAgent()
bot_user = get_settings().github_app.bot_user
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):
return {}