cmd/syncthing: Improve logged device information on startup (#5321)
This commit is contained in:
parent
2f9840ddae
commit
0391c57a37
@ -828,9 +828,11 @@ func syncthingMain(runtimeOptions RuntimeOptions) {
|
|||||||
pprof.StartCPUProfile(f)
|
pprof.StartCPUProfile(f)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
myDev, _ := cfg.Device(myID)
|
||||||
|
l.Infof(`My name is "%v"`, myDev.Name)
|
||||||
for _, device := range cfg.Devices() {
|
for _, device := range cfg.Devices() {
|
||||||
if len(device.Name) > 0 {
|
if device.DeviceID != myID {
|
||||||
l.Infof("Device %s is %q at %v", device.DeviceID, device.Name, device.Addresses)
|
l.Infof(`Device %s is "%v" at %v`, device.DeviceID, device.Name, device.Addresses)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user