diff --git a/autogpt_platform/autogpt_libs/autogpt_libs/auth/middleware.py b/autogpt_platform/autogpt_libs/autogpt_libs/auth/middleware.py index 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.py index 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}") continue n_steps += 1