Skip to content

Commit

Permalink
Update NRI device injector logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiaqicao257 committed Jan 2, 2024
1 parent ad31331 commit d2ea9d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nri_device_injector/nri_device_injector.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,13 @@ func (p *plugin) CreateContainer(_ context.Context, pod *api.PodSandbox, contain
return adjust, nil, nil
}
for _, d := range devices {
l.Infof("Annotated device %q...", d.Path)
l.WithField("device", d.Path).Info("Annotated device")
deviceNRI, err := d.toNRIDevice()
if err != nil {
return nil, nil, err
}
adjust.AddDevice(deviceNRI)
l.Infof("Injected device %q...", d.Path)
l.WithField("device", d.Path).Info("Injected device")
}
l.Info("Finished CreateContainer")
return adjust, nil, nil
Expand Down

0 comments on commit d2ea9d5

Please sign in to comment.