mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
♻️ 日志组件单独抽取项目 https://github.com/siyuan-note/siyuan/issues/5439
This commit is contained in:
parent
c8ea858976
commit
505b973c2d
70 changed files with 671 additions and 942 deletions
|
|
@ -21,6 +21,7 @@ import (
|
|||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"github.com/siyuan-note/logging"
|
||||
"github.com/siyuan-note/siyuan/kernel/util"
|
||||
|
||||
"github.com/siyuan-note/siyuan/kernel/search"
|
||||
|
|
@ -31,7 +32,7 @@ func SearchWidget(keyword string) (ret []*Block) {
|
|||
widgets := filepath.Join(util.DataDir, "widgets")
|
||||
dirs, err := os.ReadDir(widgets)
|
||||
if nil != err {
|
||||
util.LogErrorf("read dir [%s] failed: %s", widgets, err)
|
||||
logging.LogErrorf("read dir [%s] failed: %s", widgets, err)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue