1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-14 11:57:51 +00:00

nfd-worker: change Fatal* log messages to Exit*

We don't want to always print backtraces.
This commit is contained in:
Markus Lehtonen 2021-02-25 18:23:47 +02:00
parent 73bea99c34
commit ed722d5527

View file

@ -54,11 +54,11 @@ func main() {
// Get new NfdWorker instance
instance, err := worker.NewNfdWorker(args)
if err != nil {
klog.Fatalf("Failed to initialize NfdWorker instance: %v", err)
klog.Exitf("Failed to initialize NfdWorker instance: %v", err)
}
if err = instance.Run(); err != nil {
klog.Fatal(err)
klog.Exit(err)
}
}