When using the built-in http module in Go, I notice that http.ListenAndServe()
will make logging calls to stdout
by default. The main thing showing up in my terminal is:
http: TLS handshake error from x.x.x.x:x: tls: client offered an unsupported, maximum protocol version of 301.
Now I understand what this error is and what causes it, but the fact of the matter is, I don't particularly care.
How can I stop the http package (or ListenAndServe()
, whatever) from logging to stdout by default? It's clogging up my pretty console. I'm 95% certain that I'm not the one logging the messages as all of the logs I have setup have "INFO", "WARNING" etc prefixes on them.