Skip to content

Commit

Permalink
added fields to debug log output
Browse files Browse the repository at this point in the history
  • Loading branch information
cjimti committed Jan 28, 2021
1 parent a5b5ed5 commit ec73f84
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,5 +120,8 @@ func (p *Proxy) Handle(w http.ResponseWriter, r *http.Request) {
zap.String("path", reqPath),
zap.String("time", end.Format(time.RFC3339)),
zap.Duration("latency", latency),
zap.Bool("admit", admit),
zap.Any("header", r.Header),
zap.String("token", tokenString),
)
}

0 comments on commit ec73f84

Please sign in to comment.