Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Improve boot

Daniel4ee7497afd25
diff --git a/kernel/util/working.go b/kernel/util/working.go
index 87c26b7899..701350bdcd 100644
--- a/kernel/util/working.go
+++ b/kernel/util/working.go
@@ -339,6 +339,8 @@ func ReadWorkspacePaths() (ret []string, err error) {
return
}
+ logging.LogInfof("read data [%s] from workspace conf [%s]", string(data), workspaceConf)
+
if err = gulu.JSON.UnmarshalJSON(data, &ret); err != nil {
msg := fmt.Sprintf("unmarshal workspace conf [%s] failed: %s", workspaceConf, err)
logging.LogErrorf(msg)
diff --git a/kernel/util/working_mobile.go b/kernel/util/working_mobile.go
index 9d8fb3cea3..2dda1c4397 100644
--- a/kernel/util/working_mobile.go
+++ b/kernel/util/working_mobile.go
@@ -43,6 +43,8 @@ func BootMobile(container, appDir, workspaceBaseDir, lang string) {
httpclient.SetUserAgent(UserAgent)
Lang = lang
+ logging.LogInfof("workspace base dir [%s]", workspaceBaseDir)
+
WorkingDir = filepath.Join(appDir, "app")
HomeDir = filepath.Join(workspaceBaseDir, "home")
userHomeConfDir := filepath.Join(HomeDir, ".config", "siyuan")