From c27861cbaf75bc9252eedc8feff77418021d5632 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Sat, 24 May 2014 21:39:08 +0200 Subject: [PATCH] Show node ID/name/address mapping at startup (ref #249) --- cmd/syncthing/main.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmd/syncthing/main.go b/cmd/syncthing/main.go index e02be4511..35cc71fc4 100644 --- a/cmd/syncthing/main.go +++ b/cmd/syncthing/main.go @@ -361,6 +361,12 @@ func main() { 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 l.Okln("Exiting") }