feat: Errorf usage

Signed-off-by: haoyun <yun.hao@daocloud.io>
This commit is contained in:
haoyun
2021-12-13 14:31:53 +08:00
parent a04656c1dd
commit c0d07094be
30 changed files with 80 additions and 80 deletions

View File

@@ -351,7 +351,7 @@ func (s *Server) Stop() {
instance, err := p.Instance()
if err != nil {
log.L.WithError(err).WithField("id", p.Registration.URI()).
Errorf("could not get plugin instance")
Error("could not get plugin instance")
continue
}
closer, ok := instance.(io.Closer)
@@ -360,7 +360,7 @@ func (s *Server) Stop() {
}
if err := closer.Close(); err != nil {
log.L.WithError(err).WithField("id", p.Registration.URI()).
Errorf("failed to close plugin")
Error("failed to close plugin")
}
}
}