errors on postcommit should never occurs, log it as critical stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 08 Feb 2010 09:57:25 +0100
branchstable
changeset 4488 e8e7f6a0e7b6
parent 4487 632369f43baf
child 4489 63128e8b9af9
errors on postcommit should never occurs, log it as critical
server/session.py
--- a/server/session.py	Sat Feb 06 10:37:09 2010 +0100
+++ b/server/session.py	Mon Feb 08 09:57:25 2010 +0100
@@ -474,7 +474,8 @@
                 try:
                     operation.handle_event('%s_event' % trstate)
                 except:
-                    self.exception('error while %sing', trstate)
+                    self.critical('error while %sing', trstate,
+                                  exc_info=sys.exc_info())
             self.debug('%s session %s done', trstate, self.id)
         finally:
             self._touch()