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

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Dec 24 23:56:51 CET 2010


Author: vincent
Date: Fri Dec 24 23:56:50 2010
New Revision: 2573

Log:
Also log when tpc_vote or tpc_store fail.

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] Fri Dec 24 23:56:50 2010
@@ -879,6 +879,7 @@ class Application(object):
         for oid, store_dict in \
             local_var.object_stored_counter_dict.iteritems():
             if not store_dict:
+                neo.logging.error('tpc_store failed')
                 raise NEOStorageError('tpc_store failed')
             elif oid in resolved_oid_set:
                 append((oid, ResolvedSerial))
@@ -916,6 +917,7 @@ class Application(object):
 
         # check at least one storage node accepted
         if txn_stored_counter == 0:
+            neo.logging.error('tpc_vote failed')
             raise NEOStorageError('tpc_vote failed')
         # Check if master connection is still alive.
         # This is just here to lower the probability of detecting a problem




More information about the Neo-report mailing list