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

Merge pull request #27474 from tagomoris/identify-fluentd-driver-stops-after-restarts

Update fluent-logger-golang to v1.2.1
This commit is contained in:
Alexander Morozov 2016-10-18 12:47:13 -07:00 committed by GitHub
commit 329f272fd5
3 changed files with 4 additions and 4 deletions

View file

@ -118,7 +118,7 @@ clone git github.com/golang/protobuf 1f49d83d9aa00e6ce4fc8258c71cc7786aec968a
# 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"