From 85492f20fa32b545cdb051729f4f63bb3795c6b1 Mon Sep 17 00:00:00 2001 From: mrT23 Date: Thu, 22 Feb 2024 18:13:42 +0200 Subject: [PATCH] 'debug' for request body --- pr_agent/servers/github_app.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pr_agent/servers/github_app.py b/pr_agent/servers/github_app.py index c80719de..2191c4d6 100644 --- a/pr_agent/servers/github_app.py +++ b/pr_agent/servers/github_app.py @@ -208,15 +208,15 @@ async def handle_request(body: Dict[str, Any], event: str): # handle comments on PRs if action == 'created': - get_logger().info(f'Request body:\n{body}') + get_logger().debug(f'Request body:\n{body}') await handle_comments_on_pr(body, event, sender, action, log_context, agent) # handle new PRs elif event == 'pull_request' and action != 'synchronize': - get_logger().info(f'Request body:\n{body}') + get_logger().debug(f'Request body:\n{body}') await handle_new_pr_opened(body, event, sender, action, log_context, agent) # handle pull_request event with synchronize action - "push trigger" for new commits elif event == 'pull_request' and action == 'synchronize': - get_logger().info(f'Request body:\n{body}') + get_logger().debug(f'Request body:\n{body}') await handle_push_trigger_for_new_commits(body, event, sender, action, log_context, agent) else: get_logger().info(f"event {event=} action {action=} does not require any handling")