🎨 logging

This commit is contained in:
Liang Ding 2022-07-01 09:14:34 +08:00
parent 936327c695
commit c05fdfa2ff
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
3 changed files with 14 additions and 2 deletions

View file

@ -26,6 +26,7 @@ import (
"github.com/88250/gulu"
"github.com/siyuan-note/dejavu"
"github.com/siyuan-note/dejavu/entity"
"github.com/siyuan-note/encryption"
"github.com/siyuan-note/eventbus"
"github.com/siyuan-note/filelock"
@ -140,6 +141,13 @@ func init() {
}
})
eventbus.Subscribe(dejavu.EvtSyncAfterDownloadCloudIndexes, func(context map[string]interface{}, indexes []*entity.Index) {
util.LogInfof("Downloaded indexes [len=%d]", len(indexes))
for _, index := range indexes {
util.LogInfof("Index [%s]", index.ID)
}
})
eventbus.Subscribe(dejavu.EvtSyncBeforeDownloadCloudFile, func(context map[string]interface{}, id string) {
msg := "Downloading data repository object [" + id + "]"
util.SetBootDetails(msg)