From e62711b74a422019d8927e14bbfa262cdea7413a Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Wed, 31 Jan 2018 16:15:40 +0100 Subject: [PATCH] Add logging of publish response --- cmd/hubserver/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/hubserver/main.go b/cmd/hubserver/main.go index ea653cf..067e5b7 100644 --- a/cmd/hubserver/main.go +++ b/cmd/hubserver/main.go @@ -75,6 +75,8 @@ func (handler *subscriptionHandler) handlePublish(w http.ResponseWriter, r *http continue } log.Printf("publish: post send to %s\n", sub.Callback) + log.Println("Response:") + res.Write(os.Stdout) } }