migrated preemption.go, stateful.go, resource_allocation.go to structured logging

This commit is contained in:
Shivanshu Raj Shrivastava
2021-10-28 14:40:17 +05:30
parent 392de8012e
commit f4aad52885
4 changed files with 14 additions and 15 deletions

View File

@@ -84,7 +84,7 @@ func (mp *MultipointExample) PreBind(ctx context.Context, state *framework.Cycle
// New initializes a new plugin and returns it.
func New(config *runtime.Unknown, _ framework.Handle) (framework.Plugin, error) {
if config == nil {
klog.Error("MultipointExample configuration cannot be empty")
klog.ErrorS(nil, "MultipointExample configuration cannot be empty")
return nil, fmt.Errorf("MultipointExample configuration cannot be empty")
}
mp := MultipointExample{}