Skip to content

Commit

Permalink
fix(插件): 修复记录日志时,执行时间没有换算成字符串
Browse files Browse the repository at this point in the history
  • Loading branch information
storezhang committed Apr 24, 2024
1 parent 8b046df commit 691ea44
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ require (
github.com/goexl/env v0.0.2
github.com/goexl/exception v0.0.1
github.com/goexl/gex v0.3.2
github.com/goexl/gox v0.3.8
github.com/goexl/gox v0.4.3
github.com/goexl/http v0.1.9
github.com/goexl/log v0.0.7
github.com/goexl/mengpo v0.2.5
Expand All @@ -20,14 +20,14 @@ require (
github.com/gabriel-vasile/mimetype v1.4.3 // indirect
github.com/go-playground/locales v0.14.1 // indirect
github.com/go-playground/universal-translator v0.18.1 // indirect
github.com/go-playground/validator/v10 v10.17.0 // indirect
github.com/go-playground/validator/v10 v10.19.0 // indirect
github.com/goexl/baozheng v0.0.1 // indirect
github.com/goexl/guc v0.0.7 // indirect
github.com/google/uuid v1.5.0 // indirect
github.com/leodido/go-urn v1.2.4 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/leodido/go-urn v1.4.0 // indirect
github.com/rs/xid v1.5.0 // indirect
golang.org/x/crypto v0.21.0 // indirect
golang.org/x/net v0.22.0 // indirect
golang.org/x/sys v0.18.0 // indirect
golang.org/x/crypto v0.22.0 // indirect
golang.org/x/net v0.24.0 // indirect
golang.org/x/sys v0.19.0 // indirect
golang.org/x/text v0.14.0 // indirect
)
2 changes: 1 addition & 1 deletion internal/plugin/bootstrap_finally.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (b *Bootstrap) finally(err *error) {
}

fields := gox.Fields[any]{
field.New("duration", time.Since(b.started).Truncate(time.Second)),
field.New("duration", time.Since(b.started).Truncate(time.Second).String()),
}
b.Info("插件执行完成", fields...)
if nil == *err {
Expand Down

0 comments on commit 691ea44

Please sign in to comment.