From a4058e929af1c26b72a4f98e7b42c0640002b78b Mon Sep 17 00:00:00 2001 From: wmypku Date: Tue, 26 Aug 2025 17:50:15 +0800 Subject: [PATCH] refactor: replace Split in loops with more efficient SplitSeq Signed-off-by: wmypku --- config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]"