Skip to content

Commit 758243d

Browse files
committed
print -> log
1 parent 5f57d06 commit 758243d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

codeclash/agents/abstract.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def commit(self):
3535
"git add -A",
3636
f"git commit --allow-empty -m 'Round {self.round}/{rounds} Update'",
3737
]:
38-
assert_zero_exit_code(self.environment.execute(cmd))
38+
assert_zero_exit_code(self.environment.execute(cmd), logger=self.logger)
3939
self.logger.info(
4040
f"Committed changes for {self.name} for round {self.round}/{rounds}"
4141
)
@@ -56,8 +56,8 @@ def push(self):
5656
f"git remote add origin https://x-access-token:{token}@github.com/{GH_ORG}/{self.template_vars['game_name']}.git",
5757
f"git push origin {self.name}",
5858
]:
59-
assert_zero_exit_code(self.environment.execute(cmd))
60-
print(
59+
assert_zero_exit_code(self.environment.execute(cmd), logger=self.logger)
60+
self.logger.info(
6161
f"Pushed {self.name} commit history to remote repository (branch {self.name})"
6262
)
6363

0 commit comments

Comments
 (0)