summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorJakob Borg <jakob@nym.se>2014-05-24 21:39:08 +0200
committerJakob Borg <jakob@nym.se>2014-05-24 21:39:08 +0200
commitc27861cbaf75bc9252eedc8feff77418021d5632 (patch)
tree9caeaf9170f9b5e6752b1910a92860f535708437 /cmd
parentc2f75d36899102338eb2988d1c3c95f111683e6b (diff)
Show node ID/name/address mapping at startup (ref #249)
Diffstat (limited to 'cmd')
-rw-r--r--cmd/syncthing/main.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/syncthing/main.go b/cmd/syncthing/main.go
index e02be4511c..35cc71fc41 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")
}