mirror of
https://github.com/octoleo/syncthing.git
synced 2025-02-08 23:08:27 +00:00
Filenames added to audit log in the LocalIndexUpdated event (fixes #2549)
This commit is contained in:
parent
739979a116
commit
86e8e5199e
@ -1128,9 +1128,15 @@ func (m *Model) updateLocals(folder string, fs []protocol.FileInfo) {
|
|||||||
m.fmut.RUnlock()
|
m.fmut.RUnlock()
|
||||||
files.Update(protocol.LocalDeviceID, fs)
|
files.Update(protocol.LocalDeviceID, fs)
|
||||||
|
|
||||||
|
filenames := make([]string, len(fs))
|
||||||
|
for i, file := range fs {
|
||||||
|
filenames[i] = file.Name
|
||||||
|
}
|
||||||
|
|
||||||
events.Default.Log(events.LocalIndexUpdated, map[string]interface{}{
|
events.Default.Log(events.LocalIndexUpdated, map[string]interface{}{
|
||||||
"folder": folder,
|
"folder": folder,
|
||||||
"items": len(fs),
|
"items": len(fs),
|
||||||
|
"filenames": filenames,
|
||||||
"version": files.LocalVersion(protocol.LocalDeviceID),
|
"version": files.LocalVersion(protocol.LocalDeviceID),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user