diff --git a/pkg/workceptor/workceptor.go b/pkg/workceptor/workceptor.go index 80042dbdf..17035997c 100644 --- a/pkg/workceptor/workceptor.go +++ b/pkg/workceptor/workceptor.go @@ -337,7 +337,10 @@ func (w *Workceptor) scanForUnit(unitID string) { if !ok { statusFilename := path.Join(unitdir, "status") sfd := &StatusFileData{} - _ = sfd.Load(statusFilename) + serr := sfd.Load(statusFilename) + if serr != nil { + w.nc.GetLogger().Error("Error loading %s: %s", statusFilename, serr) + } w.workTypesLock.RLock() wt, ok := w.workTypes[sfd.WorkType] w.workTypesLock.RUnlock()