Skip to content

Commit

Permalink
fix: sidecar panic when scrape failed (#32)
Browse files Browse the repository at this point in the history
Co-authored-by: RayHuangCN <[email protected]>
  • Loading branch information
RayHuangCN and RayHuangCN authored Feb 24, 2021
1 parent c0e33db commit 708cfb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/sidecar/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (p *Proxy) ServeHTTP(w http.ResponseWriter, r *http.Request) {
}

if scrapErr != nil {
p.log.Error(err.Error())
p.log.Error(scrapErr.Error())
w.WriteHeader(http.StatusBadRequest)
}
}()
Expand Down

0 comments on commit 708cfb7

Please sign in to comment.