From f481061b42730df81442db0eb7d3f0f0d9a86b47 Mon Sep 17 00:00:00 2001 From: mattb-nn <85413731+mattb-nn@users.noreply.github.com> Date: Tue, 7 Nov 2023 12:01:08 +0000 Subject: [PATCH] Update tcpclient logger to use flush interval tcpclient logger was referring to FluentD configuration options. This commit amends to use TcpClient options, as intended. --- loggers/tcpclient.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loggers/tcpclient.go b/loggers/tcpclient.go index b4024b34..30535d8a 100644 --- a/loggers/tcpclient.go +++ b/loggers/tcpclient.go @@ -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