Merge pull request #2441 from dims/avoid-logging-unnecessary-errors-from-systemd-handler
Avoid logging unnecessary errors from systemd handler
This commit is contained in:
commit
23c546601b
@ -42,7 +42,8 @@ func (f *systemdFactory) CanHandleAndAccept(name string) (bool, bool, error) {
|
|||||||
if strings.HasSuffix(name, ".mount") {
|
if strings.HasSuffix(name, ".mount") {
|
||||||
return true, false, nil
|
return true, false, nil
|
||||||
}
|
}
|
||||||
return false, false, fmt.Errorf("%s not handled by systemd handler", name)
|
klog.V(5).Infof("%s not handled by systemd handler", name)
|
||||||
|
return false, false, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *systemdFactory) DebugInfo() map[string][]string {
|
func (f *systemdFactory) DebugInfo() map[string][]string {
|
||||||
|
Loading…
Reference in New Issue
Block a user