Skip to content

Commit

Permalink
updated dep, added strea sample logic
Browse files Browse the repository at this point in the history
  • Loading branch information
awitas committed Oct 17, 2022
1 parent 7a77b28 commit aadcf3a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ require (
github.com/viant/gmetric v0.2.6
github.com/viant/gtly v0.1.1-0.20220929163617-a9b6dbce2bdc
github.com/viant/scache v0.4.0
github.com/viant/tapper v0.6.5
github.com/viant/tapper v0.6.6
github.com/viant/toolbox v0.34.5
github.com/viant/xunsafe v0.8.1-0.20220921220858-82f5aba1919f
github.com/yuin/gopher-lua v0.0.0-20210529063254-f4c35e4016d9 // indirect
Expand Down
3 changes: 3 additions & 0 deletions service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,9 @@ func (s *Service) logEvaluation(request *Request, output interface{}, timeTaken
if s.logger == nil || len(request.Body) == 0 {
return
}
if !s.config.Stream.CanSample() {
return
}
msg := s.msgProvider.NewMessage()
defer msg.Free()

Expand Down

0 comments on commit aadcf3a

Please sign in to comment.