Add a log with the new branch

This commit is contained in:
Alexey Masterov
2025-07-23 15:09:02 +02:00
parent 3ce2c15c10
commit 76832488d0

View File

@@ -535,6 +535,7 @@ class NeonProject:
# So, we delete parent_id
new_branch_def["branch"].pop("parent_id")
new_branch = NeonBranch(self, new_branch_def)
log.info("Restored snapshot to the branch: %s", new_branch)
target_branch_def = self.neon_api.get_branch_details(self.id, target_branch.id)
if "name" in target_branch_def["branch"]:
target_branch.name = target_branch_def["branch"]["name"]