Skip to content

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

:art: Add logging https://github.com/siyuan-note/siyuan/issues/12960

Danielb844ff550380
diff --git a/kernel/util/ocr.go b/kernel/util/ocr.go
index cd43271065..f7d2db15d6 100644
--- a/kernel/util/ocr.go
+++ b/kernel/util/ocr.go
@@ -228,6 +228,7 @@ func Tesseract(imgAbsPath string) (ret []map[string]interface{}) {
}
tsv := string(output)
+ logging.LogInfof("tesseract [path=%s, size=%d] success", imgAbsPath, info.Size())
// 按行分割 TSV 数据
lines := strings.Split(tsv, "\r\n")