Mercurial > kallithea
changeset 2470:ed71ce61ef58 beta
Little more verbose logging for auth
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 14 Jun 2012 13:32:58 +0200 |
parents | 8bd3b7f7d428 |
children | 60bda63b64f0 |
files | rhodecode/lib/auth.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/lib/auth.py Thu Jun 14 13:29:00 2012 +0200 +++ b/rhodecode/lib/auth.py Thu Jun 14 13:32:58 2012 +0200 @@ -460,8 +460,9 @@ loc = "%s:%s" % (cls.__class__.__name__, func.__name__) log.debug('Checking if %s is authenticated @ %s' % (user.username, loc)) if user.is_authenticated or api_access_ok: - log.info('user %s is authenticated and granted access to %s' % ( - user.username, loc) + reason = 'RegularAuth' if user.is_authenticated else 'APIAuth' + log.info('user %s is authenticated and granted access to %s ' + 'using %s' % (user.username, loc, reason) ) return func(*fargs, **fkwargs) else: