lib/model, lib/protocol: Add Folder.Description() for logging (ref #3741)
This commit is contained in:
@@ -134,3 +134,8 @@ func (i *IndexID) Unmarshal(bs []byte) error {
|
||||
func NewIndexID() IndexID {
|
||||
return IndexID(rand.Int64())
|
||||
}
|
||||
|
||||
func (f Folder) Description() string {
|
||||
// used by logging stuff
|
||||
return fmt.Sprintf("%q (%s)", f.Label, f.ID)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user