From f7ec641c969075a533b3e9c43dd6775e948eb745 Mon Sep 17 00:00:00 2001 From: James Phillips Date: Wed, 7 Jun 2017 20:01:36 -0700 Subject: [PATCH] Changes FSM catalog info messages into warnings. --- consul/fsm.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/consul/fsm.go b/consul/fsm.go index dccee91702..87d3d71dc7 100644 --- a/consul/fsm.go +++ b/consul/fsm.go @@ -125,7 +125,7 @@ func (c *consulFSM) applyRegister(buf []byte, index uint64) interface{} { // Apply all updates in a single transaction if err := c.state.EnsureRegistration(index, &req); err != nil { - c.logger.Printf("[INFO] consul.fsm: EnsureRegistration failed: %v", err) + c.logger.Printf("[WARN] consul.fsm: EnsureRegistration failed: %v", err) return err } return nil @@ -143,17 +143,17 @@ func (c *consulFSM) applyDeregister(buf []byte, index uint64) interface{} { // make changes here, be sure to also adjust the code over there. if req.ServiceID != "" { if err := c.state.DeleteService(index, req.Node, req.ServiceID); err != nil { - c.logger.Printf("[INFO] consul.fsm: DeleteNodeService failed: %v", err) + c.logger.Printf("[WARN] consul.fsm: DeleteNodeService failed: %v", err) return err } } else if req.CheckID != "" { if err := c.state.DeleteCheck(index, req.Node, req.CheckID); err != nil { - c.logger.Printf("[INFO] consul.fsm: DeleteNodeCheck failed: %v", err) + c.logger.Printf("[WARN] consul.fsm: DeleteNodeCheck failed: %v", err) return err } } else { if err := c.state.DeleteNode(index, req.Node); err != nil { - c.logger.Printf("[INFO] consul.fsm: DeleteNode failed: %v", err) + c.logger.Printf("[WARN] consul.fsm: DeleteNode failed: %v", err) return err } }