From a3763466b35d4b893bd217155753b364d0779265 Mon Sep 17 00:00:00 2001 From: wang yan Date: Tue, 23 Apr 2019 10:53:32 +0800 Subject: [PATCH] Update err message to general information Signed-off-by: wang yan --- src/chartserver/reverse_proxy.go | 2 +- src/core/api/chart_repository.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chartserver/reverse_proxy.go b/src/chartserver/reverse_proxy.go index 3f91b135d..74716ea6d 100644 --- a/src/chartserver/reverse_proxy.go +++ b/src/chartserver/reverse_proxy.go @@ -92,7 +92,7 @@ func modifyResponse(res *http.Response) error { chartUploadEvent := res.Request.Context().Value(common.ChartUploadCtxKey) e, ok := chartUploadEvent.(*rep_event.Event) if !ok { - hlog.Errorf("failed to convert chart upload context to replication event, which could lead to no execution of event based chart replication policy") + hlog.Error("failed to convert chart upload context into replication event.") } else { // Todo: it used as the replacement of webhook, will be removed when webhook to be introduced. go func() { diff --git a/src/core/api/chart_repository.go b/src/core/api/chart_repository.go index 7a17ddc8f..adbedef13 100644 --- a/src/core/api/chart_repository.go +++ b/src/core/api/chart_repository.go @@ -299,7 +299,7 @@ func (cra *ChartRepositoryAPI) UploadChartVersion() { return } if err := cra.addEventContext(formFiles, cra.Ctx.Request); err != nil { - hlog.Errorf("Failed to add chart upload context into request, which could lead to no execution of event based chart replication policy, %v", err) + hlog.Errorf("Failed to add chart upload context, %v", err) } }