Skip to content

Commit d79f925

Browse files
committed
Use codeclash logger for mini environ logger
1 parent ab34af0 commit d79f925

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

codeclash/games/abstract.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ def get_environment(self, branch_name: str | None = None) -> DockerEnvironment:
107107
cwd=str(DIR_WORK),
108108
env={"GITHUB_TOKEN": os.getenv("GITHUB_TOKEN", "")},
109109
)
110+
# Logger setting will likely not take effect for initial container creation logs
111+
environment.logger = get_logger("environment", emoji="🪴")
110112
# Ensure all future branches occur against branch
111113
branch_name = self.game_id if branch_name is None else branch_name
112114
for cmd in [

codeclash/tournaments/single_player_training.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
from codeclash.games.abstract import CodeGame
1414
from codeclash.tournaments.abstract import AbstractTournament
1515
from codeclash.tournaments.utils.git_utils import filter_git_diff
16-
from codeclash.utils.log import get_logger
1716

1817

1918
class SinglePlayerTraining(AbstractTournament):

0 commit comments

Comments
 (0)