From 9d9c230577fd795256f518abf7e3c0ea9c14a14e Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Wed, 15 Oct 2025 10:36:30 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/16092 Signed-off-by: Daniel <845765@qq.com> --- kernel/model/attribute_view_render.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/model/attribute_view_render.go b/kernel/model/attribute_view_render.go index 1aa20c70a..ddbc82b74 100644 --- a/kernel/model/attribute_view_render.go +++ b/kernel/model/attribute_view_render.go @@ -522,9 +522,11 @@ func RenderHistoryAttributeView(blockID, avID, viewID, query string, page, pageS historyDir := matches[0] avJSONPath := filepath.Join(historyDir, "storage", "av", avID+".json") if !gulu.File.IsExist(avJSONPath) { + logging.LogWarnf("attribute view [%s] not found in history data [%s], use current data instead", avID, historyDir) avJSONPath = filepath.Join(util.DataDir, "storage", "av", avID+".json") } if !gulu.File.IsExist(avJSONPath) { + logging.LogWarnf("attribute view [%s] not found in current data", avID) attrView = av.NewAttributeView(avID) } else { data, readErr := os.ReadFile(avJSONPath)