# HG changeset patch # User Mads Kiilerich # Date 2021-06-10 12:25:32 # Node ID 98cbebff6afc78319900d295f93c7ab0e1544156 # Parent 8993d401575bad2d085158738b09e0bd02c7f135 auth: tweak log statements when redirecting unauthenticated users to login Warning level was too verbose. diff --git a/kallithea/lib/auth.py b/kallithea/lib/auth.py --- a/kallithea/lib/auth.py +++ b/kallithea/lib/auth.py @@ -521,9 +521,9 @@ class LoginRequired(object): if self.allow_default_user: log.info('default user @ %s', loc) return func(*fargs, **fkwargs) - log.info('default user is not accepted here @ %s', loc) + log.info('default user is redirected to login @ %s', loc) elif user.is_anonymous: # default user is disabled and no proper authentication - log.warning('user is anonymous and NOT authenticated with regular auth @ %s', loc) + log.info('anonymous user is redirected to login @ %s', loc) else: # regular authentication log.info('user %s authenticated with regular auth @ %s', user, loc) return func(*fargs, **fkwargs)