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:
parent
45cce2a7a7
commit
1fc9f79056
1 changed files with 1 additions and 1 deletions
|
|
@ -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")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue