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

topology-updater: log event type that triggered update

Specify the event type as part of the log message.
In order to reduce the log volume, make it V4

Signed-off-by: Talor Itzhak <titzhak@redhat.com>
This commit is contained in:
Talor Itzhak 2023-01-08 16:56:40 +02:00
parent 7b248ecae2
commit 1c12876815

View file

@ -160,16 +160,16 @@ func (w *nfdTopologyUpdater) Run() error {
for {
select {
case <-w.eventSource:
klog.Infof("Scanning")
case info := <-w.eventSource:
klog.V(4).Infof("got %q event. scanning...", info.Event)
scanResponse, err := resScan.Scan()
utils.KlogDump(1, "podResources are", " ", scanResponse.PodResources)
if err != nil {
klog.Warningf("Scan failed: %v", err)
klog.Warningf("scan failed: %v", err)
continue
}
zones = resAggr.Aggregate(scanResponse.PodResources)
utils.KlogDump(1, "After aggregating resources identified zones are", " ", zones)
utils.KlogDump(1, "after aggregating resources identified zones are", " ", zones)
if !w.args.NoPublish {
if err = w.updateNodeResourceTopology(zones, scanResponse); err != nil {
return err