From 4e4a882ed959a641c7ec99a40c2f3ff2c03aed8d Mon Sep 17 00:00:00 2001 From: mrT23 Date: Thu, 14 Dec 2023 09:08:47 +0200 Subject: [PATCH] Remove logging from pr_agent.py and add line breaks in cli.py and github_action_runner.py --- pr_agent/agent/pr_agent.py | 1 - pr_agent/cli.py | 1 + pr_agent/servers/github_action_runner.py | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pr_agent/agent/pr_agent.py b/pr_agent/agent/pr_agent.py index b0e3a4c29..a6c7cf5ec 100644 --- a/pr_agent/agent/pr_agent.py +++ b/pr_agent/agent/pr_agent.py @@ -71,7 +71,6 @@ async def handle_request(self, pr_url, request, notify=None) -> bool: if notify: notify() - get_logger().info(f"Class: {command2class[action]}") await command2class[action](pr_url, ai_handler=self.ai_handler, args=args).run() else: return False diff --git a/pr_agent/cli.py b/pr_agent/cli.py index c955e3c54..5a6a6640a 100644 --- a/pr_agent/cli.py +++ b/pr_agent/cli.py @@ -5,6 +5,7 @@ from pr_agent.agent.pr_agent import PRAgent, commands from pr_agent.config_loader import get_settings from pr_agent.log import setup_logger + setup_logger() diff --git a/pr_agent/servers/github_action_runner.py b/pr_agent/servers/github_action_runner.py index 1d1f8a56e..45f9c712f 100644 --- a/pr_agent/servers/github_action_runner.py +++ b/pr_agent/servers/github_action_runner.py @@ -12,6 +12,7 @@ from pr_agent.tools.pr_description import PRDescription from pr_agent.tools.pr_reviewer import PRReviewer + def is_true(value: Union[str, bool]) -> bool: if isinstance(value, bool): return value