Mercurial > kallithea
changeset 8909:98cbebff6afc stable
auth: tweak log statements when redirecting unauthenticated users to login
Warning level was too verbose.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Thu, 10 Jun 2021 12:25:32 +0200 |
parents | 8993d401575b |
children | 2a57d3660003 |
files | kallithea/lib/auth.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/lib/auth.py Mon Feb 07 19:07:08 2022 +0100 +++ b/kallithea/lib/auth.py Thu Jun 10 12:25:32 2021 +0200 @@ -521,9 +521,9 @@ 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)