[Zope-CVS] CVS: Products/PluggableAuthService - PluggableAuthService.py:1.24

Tres Seaver tseaver at zope.com
Tue Nov 9 16:34:33 EST 2004


Update of /cvs-repository/Products/PluggableAuthService
In directory cvs.zope.org:/tmp/cvs-serv4261

Modified Files:
	PluggableAuthService.py 
Log Message:
 - Make over-noisy exception logging quieter.


=== Products/PluggableAuthService/PluggableAuthService.py 1.23 => 1.24 ===
--- Products/PluggableAuthService/PluggableAuthService.py:1.23	Mon Nov  8 17:35:44 2004
+++ Products/PluggableAuthService/PluggableAuthService.py	Tue Nov  9 16:34:02 2004
@@ -33,7 +33,7 @@
 
 from App.ImageFile import ImageFile
 
-from zLOG import LOG, WARNING
+from zLOG import LOG, BLATHER
 from zExceptions import Unauthorized
 from Persistence import PersistentMapping
 from OFS.Folder import Folder
@@ -214,7 +214,7 @@
                                                      , exact_match=True )
                     assert( len( user_info ) in [ 0, 1 ] )
                 except _SWALLOWABLE_PLUGIN_EXCEPTIONS:
-                    LOG('PluggableAuthService', WARNING,
+                    LOG('PluggableAuthService', BLATHER,
                         'UserEnumerationPlugin %s error' % plugin_id,
                         error=sys.exc_info())
                 else:
@@ -309,7 +309,7 @@
                     else:
                         return ()
                 except _SWALLOWABLE_PLUGIN_EXCEPTIONS:
-                    LOG('PluggableAuthService', WARNING,
+                    LOG('PluggableAuthService', BLATHER,
                         'UserEnumerationPlugin %s error' % plugin_id,
                         error=sys.exc_info())
                     return ()
@@ -346,7 +346,7 @@
                     result.append(info)
 
             except _SWALLOWABLE_PLUGIN_EXCEPTIONS:
-                LOG('PluggableAuthService', WARNING,
+                LOG('PluggableAuthService', BLATHER,
                     'UserEnumerationPlugin %s error' % enumerator_id,
                     error=sys.exc_info())
 
@@ -393,7 +393,7 @@
                     else:
                         return ()
                 except _SWALLOWABLE_PLUGIN_EXCEPTIONS:
-                    LOG('PluggableAuthService', WARNING,
+                    LOG('PluggableAuthService', BLATHER,
                         'GroupEnumerationPlugin %s error' % plugin_id,
                         error=sys.exc_info())
                     return ()
@@ -430,7 +430,7 @@
                         info[ 'title' ] = "(Group) %s" % info[ 'groupid' ]
                     result.append(info)
             except _SWALLOWABLE_PLUGIN_EXCEPTIONS:
-                LOG('PluggableAuthService', WARNING,
+                LOG('PluggableAuthService', BLATHER,
                     'GroupEnumerationPlugin %s error' % enumerator_id,
                     error=sys.exc_info())
 
@@ -507,7 +507,7 @@
                     else:
                         return ()
                 except _SWALLOWABLE_PLUGIN_EXCEPTIONS:
-                    LOG('PluggableAuthService', WARNING,
+                    LOG('PluggableAuthService', BLATHER,
                         'UserEnumeratePlugin %s error' % plugin_id,
                         error=sys.exc_info())
                     return ()
@@ -653,7 +653,7 @@
         try:
             extractors = plugins.listPlugins( IExtractionPlugin )
         except _SWALLOWABLE_PLUGIN_EXCEPTIONS:
-            LOG('PluggableAuthService', WARNING,
+            LOG('PluggableAuthService', BLATHER,
                 'Plugin listing error',
                 error=sys.exc_info())
             extractors = ()
@@ -664,7 +664,7 @@
         try:
             authenticators = plugins.listPlugins( IAuthenticationPlugin )
         except _SWALLOWABLE_PLUGIN_EXCEPTIONS:
-            LOG('PluggableAuthService', WARNING,
+            LOG('PluggableAuthService', BLATHER,
                 'Plugin listing error',
                 error=sys.exc_info())
             authenticators = ()
@@ -674,7 +674,7 @@
             try:
                 credentials = extractor.extractCredentials( request )
             except _SWALLOWABLE_PLUGIN_EXCEPTIONS:
-                LOG('PluggableAuthService', WARNING,
+                LOG('PluggableAuthService', BLATHER,
                     'ExtractionPlugin %s error' % extractor_id,
                     error=sys.exc_info())
                 continue
@@ -686,7 +686,7 @@
                     items = credentials.items()
                     items.sort()
                 except _SWALLOWABLE_PLUGIN_EXCEPTIONS:
-                    LOG('PluggableAuthService', WARNING,
+                    LOG('PluggableAuthService', BLATHER,
                         'Credentials error: %s' % credentials,
                         error=sys.exc_info())
                 else:
@@ -714,7 +714,7 @@
                             user_id, name = uid_and_name
                             
                         except _SWALLOWABLE_PLUGIN_EXCEPTIONS:
-                            LOG('PluggableAuthService', WARNING,
+                            LOG('PluggableAuthService', BLATHER,
                                 'AuthenticationPlugin %s error' %
                                 authenticator_id, error=sys.exc_info())
                             continue
@@ -763,7 +763,7 @@
             eua = EmergencyUserAuthenticator()
             user_id, name = eua.authenticateCredentials( credentials )
         except _SWALLOWABLE_PLUGIN_EXCEPTIONS:
-            LOG('PluggableAuthService', WARNING,
+            LOG('PluggableAuthService', BLATHER,
                 'Credentials error: %s' % credentials,
                 error=sys.exc_info())
             user_id, name = ( None, None )
@@ -935,7 +935,7 @@
                         return id
 
                 except _SWALLOWABLE_PLUGIN_EXCEPTIONS:
-                    LOG('PluggableAuthService', WARNING,
+                    LOG('PluggableAuthService', BLATHER,
                         'UserEnumerationPlugin %s error' % enumerator_id,
                         error=sys.exc_info())
 
@@ -1087,7 +1087,7 @@
                 try:
                     roleassigner.doAssignRoleToPrincipal( user.getId(), role )
                 except _SWALLOWABLE_PLUGIN_EXCEPTIONS:
-                    LOG('PluggableAuthService', WARNING,
+                    LOG('PluggableAuthService', BLATHER,
                         'RoleAssigner %s error' % roleassigner_id,
                         error=sys.exc_info())
                     pass



More information about the Zope-CVS mailing list