Remove request logging from microsub server
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Peter Stuifzand 2019-03-23 21:48:23 +01:00
parent ed90ebbdd3
commit dbfe957f63
Signed by: peter
GPG Key ID: 374322D56E5209E8

View File

@ -50,9 +50,9 @@ func NewMicrosubHandler(backend microsub.Microsub) (http.Handler, *Broker) {
func (h *microsubHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
r.ParseForm()
log.Printf("Incoming request: %s %s\n", r.Method, r.URL)
log.Println(r.URL.Query())
log.Println(r.PostForm)
// log.Printf("Incoming request: %s %s\n", r.Method, r.URL)
// log.Println(r.URL.Query())
// log.Println(r.PostForm)
if r.Method == http.MethodOptions {
w.Header().Add("Access-Control-Allow-Origin", "*")