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): Ensuring we save TRACE level to files

Kilian Lieret6b69869cf112
diff --git a/sweagent/utils/log.py b/sweagent/utils/log.py
index 28698c31..550036aa 100644
--- a/sweagent/utils/log.py
+++ b/sweagent/utils/log.py
@@ -71,7 +71,8 @@ def get_logger(name: str, *, emoji: str = "") -> logging.Logger:
show_path=False,
)
handler.setLevel(_STREAM_LEVEL)
- logger.setLevel(0)
+ # Set to lowest level and only use stream handlers to adjust levels
+ logger.setLevel(logging.TRACE) # type: ignore
logger.addHandler(handler)
logger.propagate = False
_SET_UP_LOGGERS.add(name)