mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
Add error logger to http server (#2242)
* add error logger to http server Signed-off-by: MonzElmasry <menna.elmasry@rancher.com>
This commit is contained in:
parent
beab211685
commit
edb3e5b7a7
@ -3,6 +3,7 @@ package cluster
|
||||
import (
|
||||
"context"
|
||||
"crypto/tls"
|
||||
"log"
|
||||
"net"
|
||||
"net/http"
|
||||
"path/filepath"
|
||||
@ -60,7 +61,8 @@ func (c *Cluster) initClusterAndHTTPS(ctx context.Context) error {
|
||||
}
|
||||
|
||||
server := http.Server{
|
||||
Handler: handler,
|
||||
Handler: handler,
|
||||
ErrorLog: log.New(logrus.StandardLogger().Writer(), "Cluster-Http-Server ", log.LstdFlags),
|
||||
}
|
||||
|
||||
go func() {
|
||||
|
Loading…
Reference in New Issue
Block a user