Remove Microsub access log request logging
All checks were successful
the build was successful

This commit is contained in:
Peter Stuifzand 2018-12-08 17:05:56 +01:00
parent 4fd3eb73ed
commit db40a9fd1c
Signed by: peter
GPG Key ID: 374322D56E5209E8

View File

@ -20,7 +20,6 @@ package server
import (
"encoding/json"
"fmt"
"log"
"net/http"
"regexp"
@ -45,9 +44,9 @@ func NewMicrosubHandler(backend microsub.Microsub) http.Handler {
func (h *microsubHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
r.ParseForm()
log.Printf("%s %s\n", r.Method, r.URL)
log.Println(r.URL.Query())
log.Println(r.PostForm)
// log.Printf("%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", "*")