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 GitHub
parent 521f3dbc6f
commit f0b78c020b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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")
}