From 738b677bc1f34ca498b8665962bf1306b843e49d Mon Sep 17 00:00:00 2001 From: paulyufan2 Date: Tue, 19 Mar 2024 18:00:36 -0400 Subject: [PATCH] enhance echo server log --- cns/restserver/v2/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cns/restserver/v2/server.go b/cns/restserver/v2/server.go index e484ed3e81f..e042907dc06 100644 --- a/cns/restserver/v2/server.go +++ b/cns/restserver/v2/server.go @@ -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