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:
parent
f8ad566e91
commit
dd7691c486
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue