# HG changeset patch # User Marcin Kuzminski # Date 2012-06-14 11:32:58 # Node ID ed71ce61ef58d238844be3dd810f73b118169708 # Parent 8bd3b7f7d42854c7d1fe2dd1ccdb20872e0c9a8e Little more verbose logging for auth diff --git a/rhodecode/lib/auth.py b/rhodecode/lib/auth.py --- a/rhodecode/lib/auth.py +++ b/rhodecode/lib/auth.py @@ -460,8 +460,9 @@ class LoginRequired(object): 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: