Fix logging
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Peter Stuifzand 2019-03-18 22:12:50 +01:00
parent d58d21d491
commit 2cda6afee9

View File

@ -225,16 +225,16 @@ func (handler *subscriptionHandler) ServeHTTP(w http.ResponseWriter, r *http.Req
if mode == "subscribe" {
err = handler.handleSubscription(w, r)
log.Println("saving subscribe failed: %v", err)
log.Printf("saving subscribe failed: %v", err)
return
} else if mode == "unsubscribe" {
err = handler.handleUnsubscription(w, r)
log.Println("saving unsubscribe failed: %v", err)
log.Printf("saving unsubscribe failed: %v", err)
return
} else if mode == "publish" {
log.Println("hub.mode=publish received")
err = handler.handlePublish(w, r)
log.Println("handling publish failed: %v", err)
log.Printf("handling publish failed: %v", err)
return
} else {
http.Error(w, "Unknown hub.mode", 400)