@@ -91,7 +91,7 @@ func (s *server) Start() error {
91
91
92
92
if selinux .GetEnabled () {
93
93
if err := selinux .SetFileLabel (s .socketDir , config .KubeletPluginsDirSELinuxLabel ); err != nil {
94
- klog .InfoS ( "Unprivileged containerized plugins might not work. Could not set selinux context on socket dir" , "path" , s .socketDir , "err" , err )
94
+ klog .ErrorS ( err , "Unprivileged containerized plugins might not work. Could not set selinux context on socket dir" , "path" , s .socketDir )
95
95
}
96
96
}
97
97
@@ -128,7 +128,7 @@ func (s *server) Start() error {
128
128
func (s * server ) Stop () error {
129
129
s .visitClients (func (r string , c Client ) {
130
130
if err := s .disconnectClient (r , c ); err != nil {
131
- klog .InfoS ( "Error disconnecting device plugin client" , "resourceName" , r , "err" , err )
131
+ klog .ErrorS ( err , "Error disconnecting device plugin client" , "resourceName" , r )
132
132
}
133
133
})
134
134
@@ -160,18 +160,18 @@ func (s *server) Register(ctx context.Context, r *api.RegisterRequest) (*api.Emp
160
160
161
161
if ! s .isVersionCompatibleWithPlugin (r .Version ) {
162
162
err := fmt .Errorf (errUnsupportedVersion , r .Version , api .SupportedVersions )
163
- klog .InfoS ( "Bad registration request from device plugin with resource" , "resourceName" , r .ResourceName , "err" , err )
163
+ klog .ErrorS ( err , "Bad registration request from device plugin with resource" , "resourceName" , r .ResourceName )
164
164
return & api.Empty {}, err
165
165
}
166
166
167
167
if ! v1helper .IsExtendedResourceName (core .ResourceName (r .ResourceName )) {
168
168
err := fmt .Errorf (errInvalidResourceName , r .ResourceName )
169
- klog .InfoS ( "Bad registration request from device plugin" , "err" , err )
169
+ klog .ErrorS ( err , "Bad registration request from device plugin" )
170
170
return & api.Empty {}, err
171
171
}
172
172
173
173
if err := s .connectClient (r .ResourceName , filepath .Join (s .socketDir , r .Endpoint )); err != nil {
174
- klog .InfoS ( "Error connecting to device plugin client" , "err" , err )
174
+ klog .ErrorS ( err , "Error connecting to device plugin client" )
175
175
return & api.Empty {}, err
176
176
}
177
177
0 commit comments