]> Cypherpunks repositories - gostls13.git/commit
net/http/httputil: remove os.Stderr claim in ReverseProxy.ErrorLog docs
authorDmitri Shuralyov <dmitshur@golang.org>
Sun, 12 May 2019 23:21:33 +0000 (19:21 -0400)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 17 May 2019 17:33:16 +0000 (17:33 +0000)
commit3f7c5608299b56283a2c885b6146823d5b83b2f7
tree478de3152cbbcd99c6136b68d75268bc1bcd950f
parent06642d8e77ae23325de1db177366c902ec75ab1e
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>
src/net/http/httputil/reverseproxy.go