turn down some info logs into debug stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 09 Feb 2010 12:38:59 +0100
branchstable
changeset 4515 e8835c68f581
parent 4514 5bb1d39ea0da
child 4516 00d2ef9f1754
turn down some info logs into debug
server/hooksmanager.py
server/session.py
server/sources/native.py
--- a/server/hooksmanager.py	Tue Feb 09 12:37:47 2010 +0100
+++ b/server/hooksmanager.py	Tue Feb 09 12:38:59 2010 +0100
@@ -110,9 +110,9 @@
     def call_hooks(self, __event, __type='', *args, **kwargs):
         """call hook matching event and optional type"""
         if __type:
-            self.info('calling hooks for event %s (%s)', __event, __type)
+            self.debug('calling hooks for event %s (%s)', __event, __type)
         else:
-            self.info('calling hooks for event %s', __event)
+            self.debug('calling hooks for event %s', __event)
         # call generic hooks first
         for hook in self._hooks[__event]['']:
             #print '[generic]', hook.__name__
--- a/server/session.py	Tue Feb 09 12:37:47 2010 +0100
+++ b/server/session.py	Tue Feb 09 12:38:59 2010 +0100
@@ -491,7 +491,7 @@
                 except:
                     self.critical('error while %sing', trstate,
                                   exc_info=sys.exc_info())
-            self.debug('%s session %s done', trstate, self.id)
+            self.info('%s session %s done', trstate, self.id)
         finally:
             self._touch()
             self.commit_state = None
--- a/server/sources/native.py	Tue Feb 09 12:37:47 2010 +0100
+++ b/server/sources/native.py	Tue Feb 09 12:38:59 2010 +0100
@@ -564,7 +564,7 @@
     def fti_index_entity(self, session, entity):
         """add text content of a created/modified entity to the full text index
         """
-        self.info('reindexing %r', entity.eid)
+        self.debug('reindexing %r', entity.eid)
         try:
             self.indexer.cursor_reindex_object(entity.eid, entity,
                                                session.pool['system'])