From f0b78c020be3d982fcd60525bc6cd7400f8ea4b4 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 7006e0f01..56e083c1e 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") }