This commit is contained in:
Liang Ding 2022-07-17 12:22:32 +08:00
parent c8ea858976
commit 505b973c2d
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
70 changed files with 671 additions and 942 deletions

View file

@ -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
}