mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-07-28 19:39:26 +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
4
main.go
4
main.go
@@ -7,6 +7,8 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"os"
|
||||
|
||||
"github.com/rancher/k3s/pkg/cli/agent"
|
||||
@@ -36,7 +38,7 @@ func main() {
|
||||
),
|
||||
}
|
||||
|
||||
if err := app.Run(configfilearg.MustParse(os.Args)); err != nil {
|
||||
if err := app.Run(configfilearg.MustParse(os.Args)); err != nil && !errors.Is(err, context.Canceled) {
|
||||
logrus.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user