Replace klog with non-exiting fork

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
This commit is contained in:
Brad Davidson
2021-09-08 10:56:18 -07:00
committed by Brad Davidson
parent 90960ebf4e
commit 29c8b238e5
18 changed files with 102 additions and 81 deletions

View File

@@ -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)
}
}