Skip to content

Commit 4e1e520

Browse files
authored
INGEST-17577-added retry counter (i) in the error message (#223)
1 parent ad89483 commit 4e1e520

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eventsink/splunk.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ func (s *Splunk) indexEvents(writer eventwriter.Writer, batch []map[string]inter
125125
if err == nil {
126126
return nil
127127
}
128-
s.config.Logger.Error("Unable to talk to Splunk", err)
128+
s.config.Logger.Error("Unable to talk to Splunk", err, lager.Data{"Retry attempt": i + 1})
129129
time.Sleep(getRetryInterval(i))
130130
}
131131
s.config.Logger.Error("Finish retrying and dropping events", err, lager.Data{"events": len(batch)})

0 commit comments

Comments
 (0)