From 648ba9f84b81e7b2a9797bcf4e87ea4d194b8093 Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Sun, 11 Feb 2018 09:29:32 +0100 Subject: [PATCH] Log incoming subscription requests --- cmd/hubserver/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/hubserver/main.go b/cmd/hubserver/main.go index 679629f..1e54c49 100644 --- a/cmd/hubserver/main.go +++ b/cmd/hubserver/main.go @@ -134,6 +134,7 @@ func (handler *subscriptionHandler) handleUnsubscription(w http.ResponseWriter, } 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") topic := r.Form.Get("hub.topic") secret := r.Form.Get("hub.secret")