[Checkins] SVN: Products.PluggableAuthService/branches/maurits-login-transform/Products/PluggableAuthService/ logger.info -> logger.debug
Maurits van Rees
cvs-admin at zope.org
Mon Jan 21 13:14:10 UTC 2013
Log message for revision 129069:
logger.info -> logger.debug
Changed:
U Products.PluggableAuthService/branches/maurits-login-transform/Products/PluggableAuthService/PluggableAuthService.py
U Products.PluggableAuthService/branches/maurits-login-transform/Products/PluggableAuthService/plugins/ZODBUserManager.py
-=-
Modified: Products.PluggableAuthService/branches/maurits-login-transform/Products/PluggableAuthService/PluggableAuthService.py
===================================================================
--- Products.PluggableAuthService/branches/maurits-login-transform/Products/PluggableAuthService/PluggableAuthService.py 2013-01-21 13:12:05 UTC (rev 129068)
+++ Products.PluggableAuthService/branches/maurits-login-transform/Products/PluggableAuthService/PluggableAuthService.py 2013-01-21 13:14:10 UTC (rev 129069)
@@ -1110,8 +1110,8 @@
orig_value = getattr(self, id)
super(PluggableAuthService, self)._setPropValue(id, value)
if id == 'login_transform' and value and value != orig_value:
- logger.info("login_transform changed from %r to %r. "
- "Updating existing login names.", orig_value, value)
+ logger.debug("login_transform changed from %r to %r. "
+ "Updating existing login names.", orig_value, value)
self.updateAllLoginNames()
security.declarePublic( 'lower' )
@@ -1263,14 +1263,14 @@
def updateLoginName(self, user_id, login_name):
"""Update login name of user.
"""
- logger.info("Called updateLoginName, user_id=%r, login_name=%r",
- user_id, login_name)
+ logger.debug("Called updateLoginName, user_id=%r, login_name=%r",
+ user_id, login_name)
login_name = self.applyTransform(login_name)
user = self.getUserById(user_id)
if user is None:
return
if user.getUserName() == login_name:
- logger.info("login name is the same: %r", login_name)
+ logger.debug("login name is the same: %r", login_name)
plugins = self._getOb('plugins')
updaters = plugins.listPlugins(IUserEnumerationPlugin)
@@ -1303,18 +1303,17 @@
def updateOwnLoginName(self, login_name):
"""Update own login name of authenticated user.
"""
- logger.info("Called updateOwnLoginName, login_name=%r", login_name)
+ logger.debug("Called updateOwnLoginName, login_name=%r", login_name)
login_name = self.applyTransform(login_name)
user = getSecurityManager().getUser()
if aq_base(user) is nobody:
return
if user.getUserName() == login_name:
- logger.info("login name is the same: %r", login_name)
+ logger.debug("login name is the same: %r", login_name)
return
user_id = user.getId()
plugins = self._getOb('plugins')
updaters = plugins.listPlugins(IUserEnumerationPlugin)
- logger.info('UpdateLoginNamePlugins: %r', updaters)
# Call the updaters. One of them *must* succeed without an
# exception, even if it does not change anything. When a
@@ -1336,7 +1335,7 @@
exc_info=True)
else:
success = True
- logger.info("login name changed to: %r", login_name)
+ logger.debug("login name changed to: %r", login_name)
if not success:
raise ValueError("Cannot update own login name of user %r to %r. "
Modified: Products.PluggableAuthService/branches/maurits-login-transform/Products/PluggableAuthService/plugins/ZODBUserManager.py
===================================================================
--- Products.PluggableAuthService/branches/maurits-login-transform/Products/PluggableAuthService/plugins/ZODBUserManager.py 2013-01-21 13:12:05 UTC (rev 129068)
+++ Products.PluggableAuthService/branches/maurits-login-transform/Products/PluggableAuthService/plugins/ZODBUserManager.py 2013-01-21 13:14:10 UTC (rev 129069)
@@ -360,8 +360,8 @@
# Also, remove from the cache
view_name = createViewName('enumerateUsers', user_id)
self.ZCacheable_invalidate(view_name=view_name)
- logger.info("User id %s: changed login name from %r to %r.",
- user_id, old_login_name, new_login_name)
+ logger.debug("User id %s: changed login name from %r to %r.",
+ user_id, old_login_name, new_login_name)
# If there were errors, we do not want to save any changes.
if errors:
More information about the checkins
mailing list