cleanup logging

This commit is contained in:
Todd Gruben 2017-12-07 15:09:42 -06:00
parent 9565db43a8
commit e6adb361b9

View file

@ -336,7 +336,7 @@ func (c *Cluster) SetNodeState(state string) error {
State: state,
}
c.logger().Printf("Sending State %s (%s)", state, c.Coordinator.String())
c.logger().Printf("Sending State %s (%s)", state, c.Coordinator)
if err := c.sendTo(c.Coordinator, ns); err != nil {
return fmt.Errorf("sending node state error: err=%s", err)
}
@ -360,7 +360,7 @@ func (c *Cluster) ReceiveNodeState(uri URI, state string) error {
}
c.Topology.nodeStates[uri] = state
c.logger().Printf("Receiving State %s (%s)", state, uri.String())
c.logger().Printf("Receiving State %s (%s)", state, uri)
// Set cluster state to NORMAL.
if c.haveTopologyAgreement() && c.allNodesReady() {