Skip to content

Commit

Permalink
Minor rephrasing of errors / logs
Browse files Browse the repository at this point in the history
- Use "failed to", as it's used in many other locations,
  so more consistent
- Removed "Swarm successfully ...", as it should be clear
  from the rest of the message

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
thaJeztah committed Nov 24, 2018
1 parent cd1d0fa commit 8e437c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,10 @@ func (n *Node) currentRole() api.NodeRole {
// configVXLANUDPPort sets vxlan port in libnetwork
func configVXLANUDPPort(ctx context.Context, vxlanUDPPort uint32) {
if err := overlayutils.ConfigVXLANUDPPort(vxlanUDPPort); err != nil {
log.G(ctx).WithError(err).Error("Configuring VXLAN port failed")
log.G(ctx).WithError(err).Error("failed to configure VXLAN UDP port")
return
}
logrus.Infof(" Swarm successfully initialized VXLAN UDP Port to %d ", vxlanUDPPort)
logrus.Infof("initialized VXLAN UDP port to %d ", vxlanUDPPort)
}

func (n *Node) run(ctx context.Context) (err error) {
Expand Down

0 comments on commit 8e437c3

Please sign in to comment.