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}")