Skip to content

Commit

Permalink
show RemoteAddr when push metrics parse error
Browse files Browse the repository at this point in the history
Signed-off-by: yuanzhiwei <uhe1231@163.com>
  • Loading branch information
ozhiwei committed Jul 21, 2020
1 parent 4253845 commit 8438171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handler/push.go
Expand Up @@ -108,7 +108,7 @@ func Push(
}
if err != nil {
http.Error(w, err.Error(), http.StatusBadRequest)
level.Debug(logger).Log("msg", "failed to parse text", "err", err.Error())
level.Debug(logger).Log("msg", "failed to parse text", "source", r.RemoteAddr, "err", err.Error())
return
}
now := time.Now()
Expand Down

0 comments on commit 8438171

Please sign in to comment.