aboutsummaryrefslogtreecommitdiffhomepage
path: root/ui
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2019-09-22 11:17:15 -0700
committerGravatar Frédéric Guillot <fred@miniflux.net>2019-09-22 11:38:45 -0700
commit3379429329fc566ea0c36a15bfb0c653d4bdbe6b (patch)
treed079a02ca802c7060d81f1c971dd210abdbbd7f7 /ui
parentbdca3372f94681aadd712e2508ccaf48435af709 (diff)
Log image proxy URL in debug mode
Diffstat (limited to 'ui')
-rw-r--r--ui/proxy.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/proxy.go b/ui/proxy.go
index 1a847fa..42cf45b 100644
--- a/ui/proxy.go
+++ b/ui/proxy.go
@@ -16,6 +16,7 @@ import (
"miniflux.app/http/request"
"miniflux.app/http/response"
"miniflux.app/http/response/html"
+ "miniflux.app/logger"
)
func (h *handler) imageProxy(w http.ResponseWriter, r *http.Request) {
@@ -37,7 +38,10 @@ func (h *handler) imageProxy(w http.ResponseWriter, r *http.Request) {
return
}
- req, err := http.NewRequest("GET", string(decodedURL), nil)
+ imageURL := string(decodedURL)
+ logger.Debug(`[Proxy] Fetching %q`, imageURL)
+
+ req, err := http.NewRequest("GET", imageURL, nil)
if err != nil {
html.ServerError(w, r, err)
return