Add logging for valiationURL

This commit is contained in:
Peter Stuifzand 2018-01-29 22:38:57 +01:00
parent 79a959f3b9
commit 1600b6740c

View File

@ -70,6 +70,8 @@ func (handler *subscriptionHandler) ServeHTTP(w http.ResponseWriter, r *http.Req
validationURL.Query().Add("hub.topic", topicURL.String())
validationURL.Query().Add("hub.challenge", RandStringBytes(12))
log.Println(validationURL)
req, err := http.NewRequest(http.MethodGet, callbackURL.String(), nil)
res, err := client.Do(req)