[Neo-report] r2385 vincent - in /trunk/neo/master: app.py handlers/election.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Sat Oct 30 14:56:06 CEST 2010
Author: vincent
Date: Sat Oct 30 14:56:06 2010
New Revision: 2385
Log:
Log master node UUID to make log cross-reference easier.
Modified:
trunk/neo/master/app.py
trunk/neo/master/handlers/election.py
Modified: trunk/neo/master/app.py
==============================================================================
--- trunk/neo/master/app.py [iso-8859-1] (original)
+++ trunk/neo/master/app.py [iso-8859-1] Sat Oct 30 14:56:06 2010
@@ -85,6 +85,7 @@ class Application(object):
if uuid is None or uuid == '':
uuid = self.getNewUUID(NodeTypes.MASTER)
self.uuid = uuid
+ neo.logging.info('UUID : %s', dump(uuid))
# election related data
self.unconnected_master_node_set = set()
Modified: trunk/neo/master/handlers/election.py
==============================================================================
--- trunk/neo/master/handlers/election.py [iso-8859-1] (original)
+++ trunk/neo/master/handlers/election.py [iso-8859-1] Sat Oct 30 14:56:06 2010
@@ -99,6 +99,7 @@ class ClientElectionHandler(MasterHandle
if your_uuid != app.uuid:
# uuid conflict happened, accept the new one and restart election
app.uuid = your_uuid
+ neo.logging.info('UUID conflict, new UUID: %s', dump(your_uuid))
raise ElectionFailure, 'new uuid supplied'
conn.setUUID(uuid)
More information about the Neo-report
mailing list