mirror of https://github.com/k3s-io/k3s
Add error logger to http server (#2242)
* add error logger to http server Signed-off-by: MonzElmasry <menna.elmasry@rancher.com>pull/2198/head
parent
beab211685
commit
edb3e5b7a7
|
@ -3,6 +3,7 @@ package cluster
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"crypto/tls"
|
"crypto/tls"
|
||||||
|
"log"
|
||||||
"net"
|
"net"
|
||||||
"net/http"
|
"net/http"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
@ -61,6 +62,7 @@ func (c *Cluster) initClusterAndHTTPS(ctx context.Context) error {
|
||||||
|
|
||||||
server := http.Server{
|
server := http.Server{
|
||||||
Handler: handler,
|
Handler: handler,
|
||||||
|
ErrorLog: log.New(logrus.StandardLogger().Writer(), "Cluster-Http-Server ", log.LstdFlags),
|
||||||
}
|
}
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
|
|
Loading…
Reference in New Issue