##// END OF EJS Templates
logging: improve consistency of auth plugins logs.
marcink -
r2604:bf544c2f default
parent child Browse files
Show More
@@ -281,5 +281,5 b' class RhodeCodeAuthPlugin(RhodeCodeExter'
281 if group in user_attrs["groups"]:
281 if group in user_attrs["groups"]:
282 user_attrs["admin"] = True
282 user_attrs["admin"] = True
283 log.debug("Final crowd user object: \n%s" % (formatted_json(user_attrs)))
283 log.debug("Final crowd user object: \n%s" % (formatted_json(user_attrs)))
284 log.info('user %s authenticated correctly' % user_attrs['username'])
284 log.info('user `%s` authenticated correctly' % user_attrs['username'])
285 return user_attrs
285 return user_attrs
@@ -163,5 +163,5 b' class RhodeCodeAuthPlugin(RhodeCodeExter'
163 'extern_type': extern_type,
163 'extern_type': extern_type,
164 }
164 }
165
165
166 log.info('user %s authenticated correctly' % user_attrs['username'])
166 log.info('user `%s` authenticated correctly' % user_attrs['username'])
167 return user_attrs
167 return user_attrs
@@ -486,7 +486,7 b' class RhodeCodeAuthPlugin(RhodeCodeExter'
486 'extern_type': extern_type,
486 'extern_type': extern_type,
487 }
487 }
488 log.debug('ldap user: %s', user_attrs)
488 log.debug('ldap user: %s', user_attrs)
489 log.info('user %s authenticated correctly', user_attrs['username'])
489 log.info('user `%s` authenticated correctly', user_attrs['username'])
490
490
491 return user_attrs
491 return user_attrs
492
492
@@ -157,5 +157,5 b' class RhodeCodeAuthPlugin(RhodeCodeExter'
157 pass
157 pass
158
158
159 log.debug("pamuser: %s", user_attrs)
159 log.debug("pamuser: %s", user_attrs)
160 log.info('user %s authenticated correctly' % user_attrs['username'])
160 log.info('user `%s` authenticated correctly' % user_attrs['username'])
161 return user_attrs
161 return user_attrs
@@ -127,11 +127,11 b' class RhodeCodeAuthPlugin(RhodeCodeAuthP'
127
127
128 if userobj.username == User.DEFAULT_USER and userobj.active:
128 if userobj.username == User.DEFAULT_USER and userobj.active:
129 log.info(
129 log.info(
130 'user %s authenticated correctly as anonymous user', userobj)
130 'user `%s` authenticated correctly as anonymous user', userobj)
131 return user_attrs
131 return user_attrs
132
132
133 elif userobj.username == username and password_match:
133 elif userobj.username == username and password_match:
134 log.info('user %s authenticated correctly', userobj)
134 log.info('user `%s` authenticated correctly', userobj)
135 return user_attrs
135 return user_attrs
136 log.info("user %s had a bad password when "
136 log.info("user %s had a bad password when "
137 "authenticating on this plugin", userobj)
137 "authenticating on this plugin", userobj)
@@ -100,7 +100,7 b' class RhodeCodeAuthPlugin(RhodeCodeExter'
100 }
100 }
101
101
102 log.debug('EXTERNAL user: \n%s' % formatted_json(user_attrs))
102 log.debug('EXTERNAL user: \n%s' % formatted_json(user_attrs))
103 log.info('user %s authenticated correctly' % user_attrs['username'])
103 log.info('user `%s` authenticated correctly' % user_attrs['username'])
104
104
105 return user_attrs
105 return user_attrs
106
106
General Comments 0
You need to be logged in to leave comments. Login now