From 4316d00941cf6c39bd1c8740a348dbf585ddbb15 Mon Sep 17 00:00:00 2001 From: mrT23 Date: Mon, 26 Feb 2024 21:12:28 +0200 Subject: [PATCH] log_context --- pr_agent/servers/github_app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pr_agent/servers/github_app.py b/pr_agent/servers/github_app.py index 34504dde..5f59969b 100644 --- a/pr_agent/servers/github_app.py +++ b/pr_agent/servers/github_app.py @@ -213,8 +213,9 @@ def handle_closed_pr(body, event, action, log_context): return api_url = pull_request.get("url", "") pr_statistics = get_git_provider()(pr_url=api_url).calc_pr_statistics(pull_request) - with get_logger().contextualize(pr_statistics=pr_statistics): - get_logger().info("PR-Agent statistics for closed PR", analytics=True) + with get_logger().contextualize(**log_context): + with get_logger().contextualize(pr_statistics=pr_statistics): + get_logger().info("PR-Agent statistics for closed PR", analytics=True) async def handle_request(body: Dict[str, Any], event: str):