An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: logging
Liang Dingc05fdfa2ffb0
diff --git a/kernel/go.mod b/kernel/go.modindex ef0cb391f2..968e73d4d9 100644--- a/kernel/go.mod+++ b/kernel/go.mod@@ -40,7 +40,7 @@ require (github.com/qiniu/go-sdk/v7 v7.13.0github.com/radovskyb/watcher v1.0.7github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06- github.com/siyuan-note/dejavu v0.0.0-20220630143851-b239e9224291+ github.com/siyuan-note/dejavu v0.0.0-20220701011145-8e120e6edec7github.com/siyuan-note/encryption v0.0.0-20220612074546-f1dd94fe8676github.com/siyuan-note/eventbus v0.0.0-20220624162334-ca7c06dc771fgithub.com/siyuan-note/filelock v0.0.0-20220616063212-74cfba0754ee@@ -101,7 +101,7 @@ require (go.uber.org/multierr v1.8.0 // indirectgolang.org/x/crypto v0.0.0-20220622213112-05595931fe9d // indirectgolang.org/x/mod v0.5.1 // indirect- golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect+ golang.org/x/net v0.0.0-20220630215102-69896b714898 // indirectgolang.org/x/sync v0.0.0-20220601150217-0de741cfad7f // indirectgolang.org/x/sys v0.0.0-20220627191245-f75cf1eec38b // indirectgolang.org/x/tools v0.1.8 // indirectdiff --git a/kernel/go.sum b/kernel/go.sumindex e387d59681..f3abf52176 100644--- a/kernel/go.sum+++ b/kernel/go.sum@@ -423,6 +423,8 @@ github.com/shurcooL/vfsgen v0.0.0-20200824052919-0d455de96546/go.mod h1:TrYk7fJVgithub.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0=github.com/siyuan-note/dejavu v0.0.0-20220630143851-b239e9224291 h1:q6ZASwpPzlLseZIK0B37p3IQ8mTN4HnyFhD7NN3oVtI=github.com/siyuan-note/dejavu v0.0.0-20220630143851-b239e9224291/go.mod h1:0t+TpAdsrrv+6LkhDlJY2Gl92CQexgp8KWOBp5Ah9kU=+github.com/siyuan-note/dejavu v0.0.0-20220701011145-8e120e6edec7 h1:aE8uNIsIQz6OXWTW1O+2WrLumTP49pj/dbhJOuon1hU=+github.com/siyuan-note/dejavu v0.0.0-20220701011145-8e120e6edec7/go.mod h1:0t+TpAdsrrv+6LkhDlJY2Gl92CQexgp8KWOBp5Ah9kU=github.com/siyuan-note/encryption v0.0.0-20220612074546-f1dd94fe8676 h1:QB9TjJQFhXhZ6dAtPpY02DlzHAQm1C+WqZq6OadG8mI=github.com/siyuan-note/encryption v0.0.0-20220612074546-f1dd94fe8676/go.mod h1:H8fyqqAbp9XreANjeSbc72zEdFfKTXYN34tc1TjZwtw=github.com/siyuan-note/eventbus v0.0.0-20220624162334-ca7c06dc771f h1:JMobMNZ7AqaKKyEK+WeWFhix/2TDQXgPZDajU00IybU=@@ -586,6 +588,8 @@ golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxgolang.org/x/net v0.0.0-20220111093109-d55c255bac03/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e h1:TsQ7F31D3bUCLeqPT0u+yjp1guoArKaNKmCr22PYgTQ=golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=+golang.org/x/net v0.0.0-20220630215102-69896b714898 h1:K7wO6V1IrczY9QOQ2WkVpw4JQSwCd52UsxVEirZUfiw=+golang.org/x/net v0.0.0-20220630215102-69896b714898/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=diff --git a/kernel/model/repository.go b/kernel/model/repository.goindex e86f38d62c..f0cdb19a77 100644--- a/kernel/model/repository.go+++ b/kernel/model/repository.go@@ -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)