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>
This commit is contained in:
SakoroYou 2026-03-27 19:12:22 +08:00 committed by Sakurapainting
parent 45cce2a7a7
commit 1fc9f79056

View file

@ -152,7 +152,7 @@ func setupAndStartChannelServices(
enabledChannels := runningServices.ChannelManager.GetEnabledChannels() enabledChannels := runningServices.ChannelManager.GetEnabledChannels()
if len(enabledChannels) > 0 { if len(enabledChannels) > 0 {
fmt.Printf("✓ Channels enabled: %s\n", enabledChannels) fmt.Printf("✓ Channels enabled: %s\n", strings.Join(enabledChannels, ", "))
} else { } else {
fmt.Println("⚠ Warning: No channels enabled") fmt.Println("⚠ Warning: No channels enabled")
} }