From 1fc9f79056ed0b07f49bd4a03e6c63103124bcd0 Mon Sep 17 00:00:00 2001 From: SakoroYou <165740095+Sakurapainting@users.noreply.github.com> Date: Fri, 27 Mar 2026 19:12:22 +0800 Subject: [PATCH] fix: sorting and joining the slice (or using %v) before printing This prints a []string with %s, which will produce formatting output like %!s([]string=...) instead of the channel list. Consider sorting and joining the slice (or using %v) before printing. Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- pkg/gateway/channel_only.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/gateway/channel_only.go b/pkg/gateway/channel_only.go index d94d3482b..c20649baf 100644 --- a/pkg/gateway/channel_only.go +++ b/pkg/gateway/channel_only.go @@ -152,7 +152,7 @@ func setupAndStartChannelServices( enabledChannels := runningServices.ChannelManager.GetEnabledChannels() if len(enabledChannels) > 0 { - fmt.Printf("✓ Channels enabled: %s\n", enabledChannels) + fmt.Printf("✓ Channels enabled: %s\n", strings.Join(enabledChannels, ", ")) } else { fmt.Println("⚠ Warning: No channels enabled") }