Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b948f2d commit 9b37a0dCopy full SHA for 9b37a0d
cli/server.go
@@ -8,6 +8,8 @@ import (
8
"encoding/pem"
9
"errors"
10
"fmt"
11
+ "io"
12
+ "log"
13
"net"
14
"net/http"
15
"net/url"
@@ -263,7 +265,10 @@ func server() *cobra.Command {
263
265
go func() {
264
266
defer close(errCh)
267
server := http.Server{
- Handler: handler,
268
+ // These errors are typically noise like "TLS: EOF". Vault does similar:
269
+ // https://github.com/hashicorp/vault/blob/e2490059d0711635e529a4efcbaa1b26998d6e1c/command/server.go#L2714
270
+ ErrorLog: log.New(io.Discard, "", 0),
271
+ Handler: handler,
272
BaseContext: func(_ net.Listener) context.Context {
273
return shutdownConnsCtx
274
},
0 commit comments