diff --git a/config.go b/config.go index 7faa5bcc3..0464ff271 100644 --- a/config.go +++ b/config.go @@ -292,7 +292,7 @@ func parseAndSetDebugLevels(debugLevel string) error { // Split the specified string into subsystem/level pairs while detecting // issues and update the log levels accordingly. - for _, logLevelPair := range strings.Split(debugLevel, ",") { + for logLevelPair := range strings.SplitSeq(debugLevel, ",") { if !strings.Contains(logLevelPair, "=") { str := "The specified debug level contains an invalid " + "subsystem/level pair [%v]"