mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-02 03:40:38 +08:00
Refactor logging statements for better readability and debugging
This commit is contained in:
@ -115,7 +115,7 @@ class LiteLLMAIHandler(BaseAiHandler):
|
||||
if self.aws_bedrock_client:
|
||||
kwargs["aws_bedrock_client"] = self.aws_bedrock_client
|
||||
|
||||
get_logger().debug(f"Prompts", messages={"system": system, "user": user})
|
||||
get_logger().debug("Prompts", messages={"system": system, "user": user})
|
||||
response = await acompletion(**kwargs)
|
||||
except (APIError, Timeout, TryAgain) as e:
|
||||
get_logger().error("Error during OpenAI inference: ", e)
|
||||
|
@ -101,7 +101,7 @@ class PRDescription:
|
||||
pr_title, pr_body = self._prepare_pr_answer_with_markers()
|
||||
else:
|
||||
pr_title, pr_body, = self._prepare_pr_answer()
|
||||
get_logger().debug(f"PR output", title=pr_title, body=pr_body)
|
||||
get_logger().debug("PR output", title=pr_title, body=pr_body)
|
||||
|
||||
# Add help text if gfm_markdown is supported
|
||||
if self.git_provider.is_supported("gfm_markdown") and get_settings().pr_description.enable_help_text:
|
||||
|
Reference in New Issue
Block a user