Merge pull request #6358 from jonyhy96/feat-error

refactor: functions for error log and error return
This commit is contained in:
Phil Estes
2021-12-14 10:16:54 -05:00
committed by GitHub
30 changed files with 80 additions and 80 deletions

View File

@@ -304,7 +304,7 @@ func (s *shimTask) delete(ctx context.Context, removeTask func(ctx context.Conte
}
if err := s.shim.delete(ctx); err != nil {
log.G(ctx).WithField("id", s.ID()).WithError(err).Errorf("failed to delete shim")
log.G(ctx).WithField("id", s.ID()).WithError(err).Error("failed to delete shim")
}
// remove self from the runtime task list