Skip to content

Commit

Permalink
revert wrappedServeHTTP to use recordDetail
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffy-mathew committed Oct 20, 2024
1 parent aee8137 commit 4ecb4aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,5 @@ tyk_linux_*
*.test

main

/coprocess/*.pb.go-e
2 changes: 1 addition & 1 deletion gateway/reverse_proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ func (p *ReverseProxy) ServeHTTP(rw http.ResponseWriter, req *http.Request) Prox
startTime := time.Now()
p.logger.WithField("ts", startTime.UnixNano()).Debug("Started")

resp := p.WrappedServeHTTP(rw, req, true)
resp := p.WrappedServeHTTP(rw, req, recordDetail(req, p.TykAPISpec))

finishTime := time.Since(startTime)
p.logger.WithField("ns", finishTime.Nanoseconds()).Debug("Finished")
Expand Down

0 comments on commit 4ecb4aa

Please sign in to comment.