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]

Remove irrelevant log messages from datasets etc. (#732)

Kilian Lieret6d9b26b8452b
diff --git a/sweagent/__init__.py b/sweagent/__init__.py
index 2265baf1..047bcfeb 100644
--- a/sweagent/__init__.py
+++ b/sweagent/__init__.py
@@ -2,8 +2,13 @@ from __future__ import annotations
__version__ = "0.6.1"
+from logging import WARNING, getLogger
from pathlib import Path
+# See https://github.com/princeton-nlp/SWE-agent/issues/585
+getLogger("datasets").setLevel(WARNING)
+getLogger("numexpr.utils").setLevel(WARNING)
+
PACKAGE_DIR = Path(__file__).resolve().parent
assert PACKAGE_DIR.is_dir()
REPO_ROOT = PACKAGE_DIR.parent