mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-20 14:04:06 +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
|
|
@ -16,7 +16,10 @@
|
|||
|
||||
package util
|
||||
|
||||
import "github.com/88250/gulu"
|
||||
import (
|
||||
"github.com/88250/gulu"
|
||||
"github.com/siyuan-note/logging"
|
||||
)
|
||||
|
||||
type PushMode int
|
||||
|
||||
|
|
@ -64,7 +67,7 @@ func NewCmdResult(cmdName string, cmdId float64, pushMode, reloadPushMode PushMo
|
|||
func (r *Result) Bytes() []byte {
|
||||
ret, err := gulu.JSON.MarshalJSON(r)
|
||||
if nil != err {
|
||||
LogErrorf("marshal result [%+v] failed [%s]", r, err)
|
||||
logging.LogErrorf("marshal result [%+v] failed [%s]", r, err)
|
||||
}
|
||||
return ret
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue