Matthew Holt
3 years ago
No known key found for this signature in database
GPG Key ID: 2A349DD577D586A5
1 changed files with
2 additions and
3 deletions
-
modules/caddyhttp/reverseproxy/reverseproxy.go
|
|
@ -574,12 +574,11 @@ func (h *Handler) reverseProxy(rw http.ResponseWriter, req *http.Request, repl * |
|
|
|
duration := time.Since(start) |
|
|
|
logger := h.logger.With( |
|
|
|
zap.String("upstream", di.Upstream.String()), |
|
|
|
zap.Duration("duration", duration), |
|
|
|
zap.Object("request", caddyhttp.LoggableHTTPRequest{Request: req}), |
|
|
|
) |
|
|
|
if err != nil { |
|
|
|
logger.Debug("upstream roundtrip", |
|
|
|
zap.Duration("duration", duration), |
|
|
|
zap.Error(err)) |
|
|
|
logger.Error("upstream roundtrip", zap.Error(err)) |
|
|
|
return err |
|
|
|
} |
|
|
|
logger.Debug("upstream roundtrip", |
|
|
|