aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitri Shuralyov <dmitshur@golang.org>2019-05-12 19:21:33 -0400
committerBrad Fitzpatrick <bradfitz@golang.org>2019-05-17 17:33:16 +0000
commit3f7c5608299b56283a2c885b6146823d5b83b2f7 (patch)
tree478de3152cbbcd99c6136b68d75268bc1bcd950f
parent06642d8e77ae23325de1db177366c902ec75ab1e (diff)
downloadgo-3f7c5608299b56283a2c885b6146823d5b83b2f7.tar.gz
go-3f7c5608299b56283a2c885b6146823d5b83b2f7.zip
net/http/httputil: remove os.Stderr claim in ReverseProxy.ErrorLog docs
The motivation for doing so is to avoid making inaccurate claims. Logging may not go to os.Stderr if anyone overrides the log package's default output via https://godoc.org/log#SetOutput. Saying that the standard logger is used should be sufficient to explain the behavior, and users can infer that os.Stderr is used by default, unless it's changed. This change is the same as what was applied to http.Server.ErrorLog documentation in CL 53950. Change-Id: I32873fc548ceee573f8616b4d49b8a8b98881803 Reviewed-on: https://go-review.googlesource.com/c/go/+/176817 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-rw-r--r--src/net/http/httputil/reverseproxy.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/net/http/httputil/reverseproxy.go b/src/net/http/httputil/reverseproxy.go
index 7bb469e5c3..1d7b0efa11 100644
--- a/src/net/http/httputil/reverseproxy.go
+++ b/src/net/http/httputil/reverseproxy.go
@@ -51,8 +51,7 @@ type ReverseProxy struct {
// ErrorLog specifies an optional logger for errors
// that occur when attempting to proxy the request.
- // If nil, logging goes to os.Stderr via the log package's
- // standard logger.
+ // If nil, logging is done via the log package's standard logger.
ErrorLog *log.Logger
// BufferPool optionally specifies a buffer pool to