From 3cce06fd38e77fb050b09f0df966ebea1b4c4956 Mon Sep 17 00:00:00 2001 From: James Phillips Date: Thu, 25 May 2017 22:02:09 -0700 Subject: [PATCH] Pulls in Serf logger fix. --- vendor/github.com/hashicorp/serf/serf/ping_delegate.go | 9 ++++----- vendor/vendor.json | 6 +++--- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/vendor/github.com/hashicorp/serf/serf/ping_delegate.go b/vendor/github.com/hashicorp/serf/serf/ping_delegate.go index f5d991b56..a4c44028e 100644 --- a/vendor/github.com/hashicorp/serf/serf/ping_delegate.go +++ b/vendor/github.com/hashicorp/serf/serf/ping_delegate.go @@ -2,7 +2,6 @@ package serf import ( "bytes" - "log" "time" "github.com/armon/go-metrics" @@ -37,7 +36,7 @@ func (p *pingDelegate) AckPayload() []byte { // The rest of the message is the serialized coordinate. enc := codec.NewEncoder(&buf, &codec.MsgpackHandle{}) if err := enc.Encode(p.serf.coordClient.GetCoordinate()); err != nil { - log.Printf("[ERR] serf: Failed to encode coordinate: %v\n", err) + p.serf.logger.Printf("[ERR] serf: Failed to encode coordinate: %v\n", err) } return buf.Bytes() } @@ -52,7 +51,7 @@ func (p *pingDelegate) NotifyPingComplete(other *memberlist.Node, rtt time.Durat // Verify ping version in the header. version := payload[0] if version != PingVersion { - log.Printf("[ERR] serf: Unsupported ping version: %v", version) + p.serf.logger.Printf("[ERR] serf: Unsupported ping version: %v", version) return } @@ -61,7 +60,7 @@ func (p *pingDelegate) NotifyPingComplete(other *memberlist.Node, rtt time.Durat dec := codec.NewDecoder(r, &codec.MsgpackHandle{}) var coord coordinate.Coordinate if err := dec.Decode(&coord); err != nil { - log.Printf("[ERR] serf: Failed to decode coordinate from ping: %v", err) + p.serf.logger.Printf("[ERR] serf: Failed to decode coordinate from ping: %v", err) return } @@ -69,7 +68,7 @@ func (p *pingDelegate) NotifyPingComplete(other *memberlist.Node, rtt time.Durat before := p.serf.coordClient.GetCoordinate() after, err := p.serf.coordClient.Update(other.Name, &coord, rtt) if err != nil { - log.Printf("[ERR] serf: Rejected coordinate from %s: %v\n", + p.serf.logger.Printf("[ERR] serf: Rejected coordinate from %s: %v\n", other.Name, err) return } diff --git a/vendor/vendor.json b/vendor/vendor.json index a1d6b1e3f..770afdf7a 100644 --- a/vendor/vendor.json +++ b/vendor/vendor.json @@ -675,11 +675,11 @@ "revisionTime": "2017-05-25T23:15:04Z" }, { - "checksumSHA1": "cOk2eJmnkqSyA0utcLlzWMFDwXg=", + "checksumSHA1": "ZkJRgexeNzNZzpw6YnedwoJl7pE=", "comment": "v0.7.0-66-g6c4672d", "path": "github.com/hashicorp/serf/serf", - "revision": "c2e4be24cdc9031eb0ad869c5d160775efdf7d7a", - "revisionTime": "2017-05-25T23:15:04Z" + "revision": "dfab144618a063232d5753eaa4250a09865106c5", + "revisionTime": "2017-05-26T05:01:28Z" }, { "checksumSHA1": "ZhK6IO2XN81Y+3RAjTcVm1Ic7oU=",