leaderless gossip-based service discovery w/ consul compatibility
5

Configure Feed

Select the types of activity you want to include in your feed.

cool agent startup prints

Jes Olson (Feb 20, 2023, 7:42 PM -0800) d56da6b2 8b9dc8ea

+13 -1
+13 -1
command/agent/agent.go
··· 70 70 os.Exit(1) 71 71 } 72 72 agent := agent.New(config) 73 + 74 + fmt.Printf("-> starting cascade agent\n") 75 + fmt.Printf(" node '%s'\n", config.NodeName) 76 + if len(config.StartJoin) > 0 { 77 + fmt.Printf(" join '%s'\n", config.StartJoin) 78 + } 79 + fmt.Printf(" bind addrs:\n") 80 + fmt.Printf(" dns '%s'\n", config.DNSBindAddr) 81 + fmt.Printf(" http '%s'\n", config.HTTPBindAddr) 82 + fmt.Printf(" serf '%s'\n", config.SerfBindAddr) 83 + fmt.Printf("\n-> logs\n") 84 + 73 85 if err := agent.Start(); err != nil { 74 86 fmt.Println(err) 75 87 os.Exit(1) 76 88 } 77 89 defer agent.Shutdown() 78 - // join any specified startup nodes 90 + 79 91 if err := startupJoin(agent); err != nil { 80 92 fmt.Println(err) 81 93 os.Exit(1)