lib/model: Log folder IDs and labels (fixes #3724)

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3741
This commit is contained in:
Roman Zaynetdinov
2016-11-17 17:12:41 +02:00
committed by Jakob Borg
parent be80b26c18
commit d3a251e6d9
2 changed files with 21 additions and 16 deletions

View File

@@ -7,6 +7,7 @@
package config
import (
"fmt"
"os"
"path/filepath"
"runtime"
@@ -103,6 +104,10 @@ func (f *FolderConfiguration) HasMarker() bool {
return true
}
func (f FolderConfiguration) Description() string {
return fmt.Sprintf("%q (%s)", f.Label, f.ID)
}
func (f *FolderConfiguration) DeviceIDs() []protocol.DeviceID {
deviceIDs := make([]protocol.DeviceID, len(f.Devices))
for i, n := range f.Devices {