Skip to content

Commit 13fc8b8

Browse files
committed
.
1 parent da0ea7d commit 13fc8b8

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

commit0/harness/docker_build.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from concurrent.futures import ThreadPoolExecutor, as_completed
88
from pathlib import Path
99
from typing import Any
10+
import sys
1011

1112
from commit0.harness.constants import (
1213
BASE_IMAGE_BUILD_DIR,
@@ -39,6 +40,8 @@ def setup_logger(repo: str, log_file: Path, mode: str = "w") -> logging.Logger:
3940
log_file.parent.mkdir(parents=True, exist_ok=True)
4041
logger = logging.getLogger(f"{repo}.{log_file.name}")
4142
handler = logging.FileHandler(log_file, mode=mode)
43+
stdout_handler = logging.StreamHandler(sys.stdout)
44+
logger.addHandler(stdout_handler)
4245
formatter = logging.Formatter("%(asctime)s - %(levelname)s - %(message)s")
4346
handler.setFormatter(formatter)
4447
logger.addHandler(handler)

commit0/harness/run_pytest_ids.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,10 @@ def main(
100100
eval_file.write_text(eval_script)
101101

102102
if ExecutionBackend(backend) == ExecutionBackend.MODAL:
103+
logger.info("Runnning on Modal")
103104
execution_context = Modal
104105
elif ExecutionBackend(backend) == ExecutionBackend.LOCAL:
106+
logger.info("Runnning locally")
105107
execution_context = Docker
106108
else:
107109
raise ValueError(

0 commit comments

Comments
 (0)