Skip to content

Commit

Permalink
Remove logging from pr_agent.py and add line breaks in cli.py and git…
Browse files Browse the repository at this point in the history
…hub_action_runner.py
  • Loading branch information
mrT23 committed Dec 14, 2023
1 parent 38ea914 commit 02871b1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion pr_agent/agent/pr_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions pr_agent/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()


Expand Down
1 change: 1 addition & 0 deletions pr_agent/servers/github_action_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 02871b1

Please sign in to comment.