Skip to content

SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]

Fix: log path for run_single

Kilian Lieret8b35715665a3
diff --git a/sweagent/run/run_single.py b/sweagent/run/run_single.py
index 33003046..30ac3119 100644
--- a/sweagent/run/run_single.py
+++ b/sweagent/run/run_single.py
@@ -129,7 +129,7 @@ class RunSingle:
_log_filename_template = f"{instance_id}.{{level}}.log"
for level in ["trace", "debug", "info"]:
add_file_handler(
- output_dir / _log_filename_template.format(level=level),
+ output_dir / instance_id / _log_filename_template.format(level=level),
level=level,
id_=f"{instance_id}-{level}",
)