From 463c5b709f41126f5c795af3499dcc83252ee46b Mon Sep 17 00:00:00 2001 From: yo Date: Mon, 8 Apr 2024 19:54:02 +0200 Subject: [PATCH] Fixed by commit ad7091e6e7583dcca04e85d449189c7780bbbaf5 --- app/startup.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/startup.go b/app/startup.go index 9e002c8..1bc6403 100644 --- a/app/startup.go +++ b/app/startup.go @@ -75,17 +75,17 @@ func (c *Conf) setup() { filter.name = filterName if strings.Contains(filter.name, ".") { - logger.Fatalf(fmt.Sprintf("Bad configuration: character '.' is not allowed in filter names: '%v'", filter.name)) + logger.Fatalf("Bad configuration: character '.' is not allowed in filter names: '%v'", filter.name) } // Parse Duration if filter.RetryPeriod == "" { if filter.Retry > 1 { - logger.Fatalf(fmt.Sprintf("Bad configuration: retry but no retryperiod in %v.%v", stream.name, filter.name)) + logger.Fatalf("Bad configuration: retry but no retryperiod in %v.%v", stream.name, filter.name) } } else { retryDuration, err := time.ParseDuration(filter.RetryPeriod) if err != nil { - logger.Fatalf(fmt.Sprintf("Bad configuration: Failed to parse retry time in %v.%v: %v", stream.name, filter.name, err)) + logger.Fatalf("Bad configuration: Failed to parse retry time in %v.%v: %v", stream.name, filter.name, err) } filter.retryDuration = retryDuration } @@ -106,7 +106,7 @@ func (c *Conf) setup() { } compiledRegex, err := regexp.Compile(regex) if err != nil { - log.Fatal(fmt.Sprintf("Bad configuration: regex of filter %s.%s: %v", stream.name, filter.name, err)) + log.Fatal("Bad configuration: regex of filter %s.%s: %v", stream.name, filter.name, err) } filter.compiledRegex = append(filter.compiledRegex, *compiledRegex) }