mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-27 04:35:16 +01:00
Update err message to general information
Signed-off-by: wang yan <wangyan@vmware.com>
This commit is contained in:
parent
1b4c75af25
commit
a3763466b3
@ -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() {
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user