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(logger): Ensure we're file logging TRACE level

Kilian Lieret9395dd2f35b0
diff --git a/sweagent/utils/log.py b/sweagent/utils/log.py
index 8544d3e9..28698c31 100644
--- a/sweagent/utils/log.py
+++ b/sweagent/utils/log.py
@@ -71,7 +71,7 @@ def get_logger(name: str, *, emoji: str = "") -> logging.Logger:
show_path=False,
)
handler.setLevel(_STREAM_LEVEL)
- logger.setLevel(min(_STREAM_LEVEL, _FILE_LEVEL))
+ logger.setLevel(0)
logger.addHandler(handler)
logger.propagate = False
_SET_UP_LOGGERS.add(name)