mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 15:10:12 +01:00
🎨 logging
This commit is contained in:
parent
936327c695
commit
c05fdfa2ff
3 changed files with 14 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue