Skip to content

Commit

Permalink
fix: Log deprecation warning for /release endpoint (#1858)
Browse files Browse the repository at this point in the history
Ref: SRX-WBWPQA
  • Loading branch information
ahmed-nour-fdc authored Aug 9, 2024
1 parent 6f0882e commit f62f3c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/frontend-service/pkg/handler/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ func (s Server) HandleRelease(w http.ResponseWriter, r *http.Request, tail strin
}

writeCorrespondingResponse(ctx, w, r, releaseResponse, err)
_, _ = w.Write([]byte("warning: /release endoint will be deprecated soon, use /api/release instead. Check https://github.com/freiheit-com/kuberpult/blob/main/docs/endpoint-release.md for more information.\n"))
logger.FromContext(ctx).Warn("warning: /release endoint will be deprecated soon, use /api/release instead. Check https://github.com/freiheit-com/kuberpult/blob/main/docs/endpoint-release.md for more information.\n")
}

func (s Server) handleApiRelease(w http.ResponseWriter, r *http.Request, tail string) {
Expand Down

0 comments on commit f62f3c3

Please sign in to comment.