mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02: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
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue