Log incoming subscription requests

This commit is contained in:
Peter Stuifzand 2018-02-11 09:29:32 +01:00
parent e7df309708
commit 648ba9f84b

View File

@ -134,6 +134,7 @@ func (handler *subscriptionHandler) handleUnsubscription(w http.ResponseWriter,
} }
func (handler *subscriptionHandler) handleSubscription(w http.ResponseWriter, r *http.Request) error { func (handler *subscriptionHandler) handleSubscription(w http.ResponseWriter, r *http.Request) error {
log.Printf("suscription request received: %s %#v\n", r.URL.String(), r.Form)
callback := r.Form.Get("hub.callback") callback := r.Form.Get("hub.callback")
topic := r.Form.Get("hub.topic") topic := r.Form.Get("hub.topic")
secret := r.Form.Get("hub.secret") secret := r.Form.Get("hub.secret")