Update err message to general information

Signed-off-by: wang yan <wangyan@vmware.com>
This commit is contained in:
wang yan 2019-04-23 10:53:32 +08:00
parent 1b4c75af25
commit a3763466b3
2 changed files with 2 additions and 2 deletions

View File

@ -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() {

View File

@ -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)
}
}