mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-08-03 20:20:05 +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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user