From f6721c76ccc7d3f3d7ffe033a4fc200840abcd8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 24 May 2016 11:50:49 +0200 Subject: [PATCH] Lowered log level for "unauthenticated access" message --- pillar/application/utils/authorization.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pillar/application/utils/authorization.py b/pillar/application/utils/authorization.py index 96268d65..f3697fbf 100644 --- a/pillar/application/utils/authorization.py +++ b/pillar/application/utils/authorization.py @@ -247,7 +247,10 @@ def require_login(require_roles=set()): current_user = g.get('current_user') if current_user is None: - log.warning('Unauthenticated acces to %s attempted.', func) + # We don't need to log at a higher level, as this is very common. + # Many browsers first try to see whether authentication is needed + # at all, before sending the password. + log.debug('Unauthenticated acces to %s attempted.', func) abort(403) if require_roles and not require_roles.intersection(set(current_user['roles'])):