Commit 3f7c5608 authored by Dmitri Shuralyov's avatar Dmitri Shuralyov Committed by Brad Fitzpatrick

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/+/176817Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 06642d8e
...@@ -51,8 +51,7 @@ type ReverseProxy struct { ...@@ -51,8 +51,7 @@ type ReverseProxy struct {
// ErrorLog specifies an optional logger for errors // ErrorLog specifies an optional logger for errors
// that occur when attempting to proxy the request. // that occur when attempting to proxy the request.
// If nil, logging goes to os.Stderr via the log package's // If nil, logging is done via the log package's standard logger.
// standard logger.
ErrorLog *log.Logger ErrorLog *log.Logger
// BufferPool optionally specifies a buffer pool to // BufferPool optionally specifies a buffer pool to
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment