reduced logging verbosity in ldapuser source stable
authorAlexandre Fayolle <alexandre.fayolle@logilab.fr>
Sun, 20 Jun 2010 15:08:23 +0000
branchstable
changeset 5800 2bc88fb424bc
parent 5799 93f4b4d2fecf
child 5801 355d3945c1f3
reduced logging verbosity in ldapuser source
server/sources/ldapuser.py
--- a/server/sources/ldapuser.py	Sat Jun 19 16:08:54 2010 +0200
+++ b/server/sources/ldapuser.py	Sun Jun 20 15:08:23 2010 +0000
@@ -242,7 +242,7 @@
                             if emailaddr == ldapemailaddr:
                                 break
                         else:
-                            self.info('updating email address of user %s to %s',
+                            self.debug('updating email address of user %s to %s',
                                       extid, ldapemailaddr)
                             emailrset = execute('EmailAddress A WHERE A address %(addr)s',
                                                 {'addr': ldapemailaddr})
@@ -504,7 +504,7 @@
     def _search(self, session, base, scope,
                 searchstr='(objectClass=*)', attrs=()):
         """make an ldap query"""
-        self.info('ldap search %s %s %s %s %s', self.uri, base, scope, searchstr, list(attrs))
+        self.debug('ldap search %s %s %s %s %s', self.uri, base, scope, searchstr, list(attrs))
         cnx = session.pool.connection(self.uri).cnx
         try:
             res = cnx.search_s(base, scope, searchstr, attrs)
@@ -564,7 +564,7 @@
         This method must return the an Entity instance representation of this
         entity.
         """
-        self.info('ldap before entity insertion')
+        self.debug('ldap before entity insertion')
         entity = super(LDAPUserSource, self).before_entity_insertion(session, lid, etype, eid)
         res = self._search(session, lid, BASE)[0]
         for attr in entity.e_schema.indexable_attributes():
@@ -575,7 +575,7 @@
         """called by the repository after an entity stored here has been
         inserted in the system table.
         """
-        self.info('ldap after entity insertion')
+        self.debug('ldap after entity insertion')
         super(LDAPUserSource, self).after_entity_insertion(session, dn, entity)
         for group in self.user_default_groups:
             session.execute('SET X in_group G WHERE X eid %(x)s, G name %(group)s',