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: improve log messages of config handling

This commit is contained in:
Markus Lehtonen 2021-03-02 18:44:28 +02:00
parent f8ad566e91
commit dd7691c486

View file

@ -394,7 +394,7 @@ func (w *nfdWorker) configureCore(c coreConfig) error {
v = a.DefValue()
}
if err := a.SetFromConfig(v); err != nil {
return err
return fmt.Errorf("failed to set logger option klog.%s = %v: %v", k, v, err)
}
}
}
@ -462,7 +462,7 @@ func (w *nfdWorker) configure(filepath string, overrides string) error {
if err != nil {
return fmt.Errorf("failed to parse config file: %s", err)
}
klog.Infof("configuration successfully loaded from %q", filepath)
klog.Infof("configuration file %q parsed", filepath)
}
}
@ -497,6 +497,8 @@ func (w *nfdWorker) configure(filepath string, overrides string) error {
s.SetConfig(c.Sources[s.Name()])
}
klog.Infof("worker (re-)configuration successfully completed")
return nil
}