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-master: drop last remnants of log package

This commit is contained in:
Markus Lehtonen 2021-02-25 18:15:17 +02:00
parent 3d5c1a18a2
commit 73bea99c34

View file

@ -19,7 +19,6 @@ package main
import (
"flag"
"fmt"
"log"
"os"
"regexp"
@ -58,17 +57,17 @@ func main() {
// Assert that the version is known
if version.Undefined() {
log.Print("WARNING: version not set! Set -ldflags \"-X sigs.k8s.io/node-feature-discovery/pkg/version.version=`git describe --tags --dirty --always`\" during build or run.")
klog.Warningf("version not set! Set -ldflags \"-X sigs.k8s.io/node-feature-discovery/pkg/version.version=`git describe --tags --dirty --always`\" during build or run.")
}
// Get new NfdMaster instance
instance, err := master.NewNfdMaster(args)
if err != nil {
log.Fatalf("Failed to initialize NfdMaster instance: %v", err)
klog.Exitf("Failed to initialize NfdMaster instance: %v", err)
}
if err = instance.Run(); err != nil {
log.Fatalf("ERROR: %v", err)
klog.Exit(err)
}
}