Log feed URL when submitting a subscription that returns an error

This commit is contained in:
Frédéric Guillot 2022-09-18 17:26:26 -07:00
parent 98c166c950
commit e8fe4ed881

View file

@ -62,7 +62,7 @@ func (h *handler) submitSubscription(w http.ResponseWriter, r *http.Request) {
subscriptionForm.AllowSelfSignedCertificates,
)
if findErr != nil {
logger.Error("[UI:SubmitSubscription] %s", findErr)
logger.Error("[UI:SubmitSubscription] %q -> %s", subscriptionForm.URL, findErr)
v.Set("form", subscriptionForm)
v.Set("errorMessage", findErr)
html.OK(w, r, v.Render("add_subscription"))