From 559a09d1eb746207aff8f44bf2fc6f8cd82984b7 Mon Sep 17 00:00:00 2001 From: "praisonai-triage-agent[bot]" <272766704+praisonai-triage-agent[bot]@users.noreply.github.com> Date: Thu, 9 Apr 2026 17:30:37 +0000 Subject: [PATCH] feat: add debug log on successful branch checkout Add logger.debug call after successful git checkout -b command in github_create_branch function Co-authored-by: MervinPraison --- src/praisonai-agents/praisonaiagents/tools/github_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/praisonai-agents/praisonaiagents/tools/github_tools.py b/src/praisonai-agents/praisonaiagents/tools/github_tools.py index d6fe59a92..a56832b63 100644 --- a/src/praisonai-agents/praisonaiagents/tools/github_tools.py +++ b/src/praisonai-agents/praisonaiagents/tools/github_tools.py @@ -8,7 +8,6 @@ def github_create_branch(branch_name: str) -> str: """Create and checkout a new git branch. -logger.debug(f"Branch '{branch_name}' checked out successfully.") Args: branch_name: The name of the branch to create and checkout. """ @@ -16,6 +15,7 @@ def github_create_branch(branch_name: str) -> str: # Check if we are in a git repository subprocess.run(["git", "rev-parse", "--is-inside-work-tree"], check=True, capture_output=True) subprocess.run(["git", "checkout", "-B", branch_name], check=True, capture_output=True, text=True) + logger.debug(f"Successfully checked out branch '{branch_name}'") return f"Successfully created and checked out branch '{branch_name}'" except subprocess.CalledProcessError as e: logger.error(f"Failed to create branch: {e.stderr}")