AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
fix: Resolve `logger.warn(..)` deprecration warnings (#9938)
Emmanuel Ferdmane5368f385716
diff --git a/autogpt_platform/autogpt_libs/autogpt_libs/auth/middleware.py b/autogpt_platform/autogpt_libs/autogpt_libs/auth/middleware.pyindex 28e2b05dd8..d00fe1a05d 100644--- a/autogpt_platform/autogpt_libs/autogpt_libs/auth/middleware.py+++ b/autogpt_platform/autogpt_libs/autogpt_libs/auth/middleware.py@@ -16,7 +16,7 @@ logger = logging.getLogger(__name__)async def auth_middleware(request: Request):if not settings.ENABLE_AUTH:# If authentication is disabled, allow the request to proceed- logger.warn("Auth disabled")+ logger.warning("Auth disabled")return {}security = HTTPBearer()diff --git a/classic/benchmark/agbenchmark/challenges/webarena.py b/classic/benchmark/agbenchmark/challenges/webarena.pyindex 30957bddc7..71568f9677 100644--- a/classic/benchmark/agbenchmark/challenges/webarena.py+++ b/classic/benchmark/agbenchmark/challenges/webarena.py@@ -410,7 +410,7 @@ class WebArenaChallenge(BaseChallenge):config, timeout, mock=bool(request.config.getoption("--mock"))):if not step.output:- logger.warn(f"Step has no output: {step}")+ logger.warning(f"Step has no output: {step}")continuen_steps += 1