full form parsing
This commit is contained in:
parent
0570e47be9
commit
475d79f16e
5 changed files with 68 additions and 19 deletions
|
|
@ -9,9 +9,9 @@ import (
|
|||
func logger(in http.HandlerFunc) http.HandlerFunc {
|
||||
return func(w http.ResponseWriter, r *http.Request) {
|
||||
start := time.Now()
|
||||
log := fmt.Sprint(r.Method, " ", r.URL.String())
|
||||
//log := fmt.Sprint(r.Method, " ", r.URL.String())
|
||||
fmt.Println(r.Method, r.URL.String())
|
||||
in(w, r)
|
||||
log += fmt.Sprint(" ", time.Since(start))
|
||||
fmt.Println(log)
|
||||
fmt.Println(r.Method, "finished in", time.Since(start))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue