Skip to content

Commit

Permalink
enhance echo server log
Browse files Browse the repository at this point in the history
  • Loading branch information
paulyufan2 committed Mar 19, 2024
1 parent 6461596 commit 738b677
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cns/restserver/v2/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ func (s Server) Start(log *zap.Logger, addr string) error {
e.GET(cns.V2Prefix+cns.DeleteHostNCApipaEndpointPath, echo.WrapHandler(http.HandlerFunc(s.DeleteHostNCApipaEndpoint)))

if err := e.Start(addr); err != nil {
log.Error("failed to run server", zap.Error(err))
return errors.Wrap(err, "failed to initialize listener")
log.Error("failed to run echo server", zap.Error(err))
return errors.Wrap(err, "failed to start echo server")
}

return nil
Expand Down

0 comments on commit 738b677

Please sign in to comment.