Skip to content

Commit

Permalink
Update tcpclient logger to use flush interval
Browse files Browse the repository at this point in the history
tcpclient logger was referring to FluentD configuration options.  This commit amends to use TcpClient options, as intended.
  • Loading branch information
mattb-nn authored Nov 7, 2023
1 parent 855852e commit f481061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loggers/tcpclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ func (o *TcpClient) Process() {
bufferDm := []dnsutils.DnsMessage{}

// init flust timer for buffer
flushInterval := time.Duration(o.config.Loggers.Fluentd.FlushInterval) * time.Second
flushInterval := time.Duration(o.config.Loggers.TcpClient.FlushInterval) * time.Second
flushTimer := time.NewTimer(flushInterval)

// init remote conn
Expand Down

0 comments on commit f481061

Please sign in to comment.