Changeset - 98cbebff6afc
[Not reviewed]
stable
0 1 0
Mads Kiilerich - 4 years ago 2021-06-10 12:25:32
mads@kiilerich.com
auth: tweak log statements when redirecting unauthenticated users to login

Warning level was too verbose.
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/auth.py
Show inline comments
 
@@ -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)
0 comments (0 inline, 0 general)