Show node ID/name/address mapping at startup (ref #249)

This commit is contained in:
Jakob Borg 2014-05-24 21:39:08 +02:00
parent c2f75d3689
commit c27861cbaf

View File

@ -361,6 +361,12 @@ func main() {
defer pprof.StopCPUProfile() defer pprof.StopCPUProfile()
} }
for _, node := range cfg.Nodes {
if len(node.Name) > 0 {
l.Infof("Node %s is %q at %v", node.NodeID, node.Name, node.Addresses)
}
}
<-stop <-stop
l.Okln("Exiting") l.Okln("Exiting")
} }