Commit acdc6eea authored by Vincent Pelletier's avatar Vincent Pelletier

Add a log when secondary master UUID gets modified.

parent 95937a53
...@@ -18,6 +18,8 @@ from . import MasterHandler ...@@ -18,6 +18,8 @@ from . import MasterHandler
from neo.lib.handler import EventHandler from neo.lib.handler import EventHandler
from neo.lib.exception import ElectionFailure, PrimaryFailure from neo.lib.exception import ElectionFailure, PrimaryFailure
from neo.lib.protocol import NodeTypes, Packets from neo.lib.protocol import NodeTypes, Packets
from neo.lib import logging
from neo.lib.util import dump
class SecondaryMasterHandler(MasterHandler): class SecondaryMasterHandler(MasterHandler):
""" Handler used by primary to handle secondary masters""" """ Handler used by primary to handle secondary masters"""
...@@ -93,6 +95,7 @@ class PrimaryHandler(EventHandler): ...@@ -93,6 +95,7 @@ class PrimaryHandler(EventHandler):
if your_uuid != app.uuid: if your_uuid != app.uuid:
# uuid conflict happened, accept the new one # uuid conflict happened, accept the new one
app.uuid = your_uuid app.uuid = your_uuid
logging.info('My UUID: ' + dump(your_uuid))
node.setUUID(uuid) node.setUUID(uuid)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment