Change error to warning if TOS not accepted (#12605)

This commit is contained in:
mamoodi
2026-01-26 12:30:00 -05:00
committed by GitHub
parent 31d5081163
commit 7ad0eec325

View File

@@ -144,7 +144,7 @@ class SetAuthCookieMiddleware:
# "if accepted_tos is not None" as there should not be any users with
# accepted_tos equal to "None"
if accepted_tos is False and request.url.path != '/api/accept_tos':
logger.error('User has not accepted the terms of service')
logger.warning('User has not accepted the terms of service')
raise TosNotAcceptedError
def _should_attach(self, request: Request) -> bool: