1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Update fluent-logger-golang to v1.2.1

This fixes a regression bug not to connect the destination node twice or more.
That regression was brought by v1.2.0, and it also makes many goroutines for
first reconnection (these will finish after first reconnection established).

Signed-off-by: Satoshi Tagomori <tagomoris@gmail.com>
(cherry picked from commit 53ed17449e)
Signed-off-by: Victor Vieux <vieux@docker.com>
This commit is contained in:
Satoshi Tagomori 2016-10-18 10:55:30 +09:00 committed by Victor Vieux
parent 30a4d7e3db
commit 659509e40b
3 changed files with 4 additions and 4 deletions

View file

@ -114,7 +114,7 @@ clone git github.com/golang/protobuf 3c84672111d91bb5ac31719e112f9f7126a0e26e
# gelf logging driver deps
clone git github.com/Graylog2/go-gelf aab2f594e4585d43468ac57287b0dece9d806883
clone git github.com/fluent/fluent-logger-golang v1.2.0
clone git github.com/fluent/fluent-logger-golang v1.2.1
# fluent-logger-golang deps
clone git github.com/philhofer/fwd 899e4efba8eaa1fea74175308f3fae18ff3319fa
clone git github.com/tinylib/msgp 75ee40d2601edf122ef667e2a07d600d4c44490c

View file

@ -78,7 +78,7 @@ func New(config Config) (f *Fluent, err error) {
}
if config.AsyncConnect {
f = &Fluent{Config: config, reconnecting: true}
f.reconnect()
go f.reconnect()
} else {
f = &Fluent{Config: config, reconnecting: false}
err = f.connect()
@ -254,7 +254,7 @@ func (f *Fluent) connect() (err error) {
err = net.UnknownNetworkError(f.Config.FluentNetwork)
}
if err != nil {
if err == nil {
f.reconnecting = false
}
return

View file

@ -1,3 +1,3 @@
package fluent
const Version = "1.1.0"
const Version = "1.2.1"