Skip to content

Commit

Permalink
fix: trace hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Lack30 committed Mar 15, 2024
1 parent 67862ed commit db1220e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ require (
github.com/gogo/protobuf v1.3.2
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510
github.com/google/uuid v1.6.0
github.com/hashicorp/go-multierror v1.1.1
github.com/json-iterator/go v1.1.12
github.com/muyo/sno v1.2.1
github.com/olive-io/bpmn v1.2.0
Expand Down Expand Up @@ -54,7 +55,6 @@ require (
github.com/golang/snappy v0.0.4 // indirect
github.com/hashicorp/errwrap v1.0.0 // indirect
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/go-uuid v1.0.3 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/jcmturner/aescts/v2 v2.0.0 // indirect
Expand Down
2 changes: 1 addition & 1 deletion tengo/builtin/trace/hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func (m *ImportModule) AddHook() tengo.CallableFunc {
}

if len(args) > 2 {
for _, arg := range args[3:] {
for _, arg := range args[2:] {
if attr, ok := arg.(*traceField); ok {
attrs = append(attrs, attr.Value)
}
Expand Down

0 comments on commit db1220e

Please sign in to comment.