mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-23 10:45:45 +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)
|
chartUploadEvent := res.Request.Context().Value(common.ChartUploadCtxKey)
|
||||||
e, ok := chartUploadEvent.(*rep_event.Event)
|
e, ok := chartUploadEvent.(*rep_event.Event)
|
||||||
if !ok {
|
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 {
|
} else {
|
||||||
// Todo: it used as the replacement of webhook, will be removed when webhook to be introduced.
|
// Todo: it used as the replacement of webhook, will be removed when webhook to be introduced.
|
||||||
go func() {
|
go func() {
|
||||||
|
@ -299,7 +299,7 @@ func (cra *ChartRepositoryAPI) UploadChartVersion() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
if err := cra.addEventContext(formFiles, cra.Ctx.Request); err != nil {
|
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