We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bea58e6 commit 7d967baCopy full SHA for 7d967ba
fluent/fluent.go
@@ -97,6 +97,7 @@ func New(config Config) (f *Fluent, err error) {
97
config.MaxRetryWait = defaultMaxRetryWait
98
}
99
if config.AsyncConnect {
100
+ fmt.Fprintf(os.Stderr, "fluent#New: AsyncConnect is now deprecated, please use Async instead")
101
config.Async = config.Async || config.AsyncConnect
102
103
if config.Async {
@@ -337,5 +338,5 @@ func (f *Fluent) write(data []byte) error {
337
338
339
340
- return errors.New("fluent#write: failed to reconnect")
341
+ return fmt.Errorf("fluent#write: failed to reconnect, max retry: %v", f.Config.MaxRetry)
342
0 commit comments