mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-07-29 00:09:33 +00:00
Replace klog with non-exiting fork
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
This commit is contained in:
committed by
Brad Davidson
parent
90960ebf4e
commit
29c8b238e5
@@ -3,6 +3,7 @@ package cluster
|
||||
import (
|
||||
"context"
|
||||
"crypto/tls"
|
||||
"errors"
|
||||
"log"
|
||||
"net"
|
||||
"net/http"
|
||||
@@ -85,7 +86,9 @@ func (c *Cluster) initClusterAndHTTPS(ctx context.Context) error {
|
||||
// Start the supervisor http server on the tls listener
|
||||
go func() {
|
||||
err := server.Serve(listener)
|
||||
logrus.Fatalf("server stopped: %v", err)
|
||||
if err != nil && !errors.Is(err, http.ErrServerClosed) {
|
||||
logrus.Fatalf("server stopped: %v", err)
|
||||
}
|
||||
}()
|
||||
|
||||
// Shutdown the http server when the context is closed
|
||||
|
||||
Reference in New Issue
Block a user