mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +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 (
|
|||
"time"
|
||||
|
||||
"github.com/siyuan-note/httpclient"
|
||||
"github.com/siyuan-note/logging"
|
||||
)
|
||||
|
||||
var cachedRhyResult = map[string]interface{}{}
|
||||
|
|
@ -39,7 +40,7 @@ func GetRhyResult(force bool) (map[string]interface{}, error) {
|
|||
request := httpclient.NewCloudRequest()
|
||||
_, err := request.SetResult(&cachedRhyResult).Get(AliyunServer + "/apis/siyuan/version?ver=" + Ver)
|
||||
if nil != err {
|
||||
LogErrorf("get version info failed: %s", err)
|
||||
logging.LogErrorf("get version info failed: %s", err)
|
||||
return nil, err
|
||||
}
|
||||
rhyResultCacheTime = now
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue