[Neo-report] r2161 vincent - /trunk/neo/client/app.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Jun 15 12:04:10 CEST 2010


Author: vincent
Date: Tue Jun 15 12:04:06 2010
New Revision: 2161

Log:
Use exc_info parameter of python logger.

Modified:
    trunk/neo/client/app.py

Modified: trunk/neo/client/app.py
==============================================================================
--- trunk/neo/client/app.py [iso-8859-1] (original)
+++ trunk/neo/client/app.py [iso-8859-1] Tue Jun 15 12:04:06 2010
@@ -20,7 +20,6 @@ from cPickle import dumps, loads
 from zlib import compress as real_compress, decompress
 from neo.locking import Queue, Empty
 from random import shuffle
-import traceback
 import time
 
 from ZODB.POSException import UndoError, StorageTransactionError, ConflictError
@@ -796,8 +795,7 @@ class Application(object):
             try:
                 _waitAnyMessage()
             except:
-                logging.error('Exception in tpc_abort: %s',
-                    traceback.format_exc())
+                logging.error('Exception in tpc_abort', exc_info=1)
 
         self.local_var.clear()
 





More information about the Neo-report mailing list