mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-04 21:00:40 +08:00
log_context
This commit is contained in:
@ -213,6 +213,7 @@ def handle_closed_pr(body, event, action, log_context):
|
|||||||
return
|
return
|
||||||
api_url = pull_request.get("url", "")
|
api_url = pull_request.get("url", "")
|
||||||
pr_statistics = get_git_provider()(pr_url=api_url).calc_pr_statistics(pull_request)
|
pr_statistics = get_git_provider()(pr_url=api_url).calc_pr_statistics(pull_request)
|
||||||
|
with get_logger().contextualize(**log_context):
|
||||||
with get_logger().contextualize(pr_statistics=pr_statistics):
|
with get_logger().contextualize(pr_statistics=pr_statistics):
|
||||||
get_logger().info("PR-Agent statistics for closed PR", analytics=True)
|
get_logger().info("PR-Agent statistics for closed PR", analytics=True)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user