mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-04-26 04:48:27 -05:00
♻️ 日志组件单独抽取项目 https://github.com/siyuan-note/siyuan/issues/5439
This commit is contained in:
+2
-1
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user