Add some logging to microsub
This commit is contained in:
parent
63556bd9c7
commit
537d7f4009
|
|
@ -5,6 +5,7 @@ import (
|
||||||
"crypto/sha1"
|
"crypto/sha1"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
"regexp"
|
"regexp"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
@ -27,6 +28,12 @@ var (
|
||||||
|
|
||||||
func (h *incomingHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
func (h *incomingHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||||
defer r.Body.Close()
|
defer r.Body.Close()
|
||||||
|
|
||||||
|
r.ParseForm()
|
||||||
|
log.Printf("%s %s\n", r.Method, r.URL)
|
||||||
|
log.Println(r.URL.Query())
|
||||||
|
log.Println(r.PostForm)
|
||||||
|
|
||||||
if r.Method == http.MethodGet {
|
if r.Method == http.MethodGet {
|
||||||
values := r.URL.Query()
|
values := r.URL.Query()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user