INNER CODE UNIT · Go
serviceHealthLogSourceIDs
VersusControl/versus-incident · cmd/main.go:486
func serviceHealthLogSourceIDs(cfg c.AgentConfig, sources []core.SignalSource) []string {
sourceIDs := make([]string, 0, len(sources))
for _, source := range sources {
for _, configured := range cfg.Sources {
if configured.Enable && signalsources.MatchesConfiguredName(source.Name(), configured.Name) && signalsources.KindOf(configured.Type) == signalsources.KindLogs {
sourceIDs = append(sourceIDs, source.Name())
break
}
}
}
return sourceIDs
}
func printCustomBanner() {
cfg := c.GetConfig()
// Prefer the operator-supplied public_host (e.g. https://versus.example.com)
// for the URLs we surface. Fall back to host:port for plain local dev.