log RQL query in case of unexpected failure (priceless when porting to new database) stable
authorAlexandre Fayolle <alexandre.fayolle@logilab.fr>
Tue, 06 Apr 2010 19:27:47 +0200
branchstable
changeset 5167 529861a73ec8
parent 5166 1e96d01728c4
child 5168 1ab032df5ca3
log RQL query in case of unexpected failure (priceless when porting to new database)
server/repository.py
--- a/server/repository.py	Tue Apr 06 19:26:28 2010 +0200
+++ b/server/repository.py	Tue Apr 06 19:27:47 2010 +0200
@@ -593,7 +593,7 @@
                 raise
             except:
                 # FIXME: check error to catch internal errors
-                self.exception('unexpected error')
+                self.exception('unexpected error while executing %s with %s', rqlstring, args)
                 raise
         finally:
             session.reset_pool()