From 1fb47134ce22456122daf14e924f3308b44dcf0e Mon Sep 17 00:00:00 2001 From: Jean-Paul Smets <jp@nexedi.com> Date: Tue, 13 Jul 2004 06:31:48 +0000 Subject: [PATCH] LOG now provides traceback git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1177 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ZSQLCatalog/SQLCatalog.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/product/ZSQLCatalog/SQLCatalog.py b/product/ZSQLCatalog/SQLCatalog.py index f8ea585c3b..de6a7346c5 100755 --- a/product/ZSQLCatalog/SQLCatalog.py +++ b/product/ZSQLCatalog/SQLCatalog.py @@ -25,6 +25,7 @@ from Acquisition import aq_parent, aq_inner, aq_base, aq_self from zLOG import LOG import time +import sys UID_BUFFER_SIZE = 1000 MAX_UID_BUFFER_SIZE = 20000 @@ -624,7 +625,7 @@ class Catalog(Persistent, Acquisition.Implicit, ExtensionClass.Base): pass # Return the result - #LOG('queryResults',0,'kw: %s' % str(kw)) + # LOG('queryResults',0,'kw: %s' % str(kw)) return sql_method(**kw) def searchResults(self, REQUEST=None, used=None, **kw): @@ -639,7 +640,7 @@ class Catalog(Persistent, Acquisition.Implicit, ExtensionClass.Base): kw['REQUEST'] = REQUEST return self.queryResults(method, **kw) except: - LOG("Warning: could not search catalog",0,'') + LOG("Warning: could not search catalog",0,'', error=sys.exc_info()) return [] __call__ = searchResults -- 2.30.9