This commit is contained in:
Liang Ding
2022-07-17 12:22:32 +08:00
parent c8ea858976
commit 505b973c2d
70 changed files with 671 additions and 942 deletions
+2 -1
View File
@@ -18,6 +18,7 @@ package cmd
import (
"github.com/88250/melody"
"github.com/siyuan-note/logging"
"github.com/siyuan-note/siyuan/kernel/util"
)
@@ -78,7 +79,7 @@ func NewCommand(cmdStr string, cmdId float64, param map[string]interface{}, sess
func Exec(cmd Cmd) {
go func() {
//start := time.Now()
defer util.Recover()
defer logging.Recover()
cmd.Exec()
//end := time.Now()
//util.Logger.Infof("cmd [%s] exec consumed [%d]ms", cmd.Name(), end.Sub(start).Milliseconds())