Commits

Felipe Prenholato committed 544923a

Some commits to avoid exceptions on wrong place

  • Participants
  • Parent commits 38dec9d

Comments (0)

Files changed (2)

File django_auth_ldap/backend.py

                 profile.save()
         except (SiteProfileNotAvailable, ObjectDoesNotExist):
             logger.debug("Django user %s does not have a profile to populate", self._user.username)
+        except Exception,err:
+            logger.debug("Django user %s have a profile but we have some problem to populate: %s", (self._user.username,unicode(err)))
+
 
     def _mirror_groups(self):
         """

File django_auth_ldap/config.py

                     pass
 
             cls.logger = logging.getLogger('django_auth_ldap')
-            cls.logger.addHandler(NullHandler())
+            #cls.logger.addHandler(NullHandler())
 
         return cls.logger
     get_logger = classmethod(get_logger)