diff options
| author | Shulhan <m.shulhan@gmail.com> | 2020-10-05 16:46:22 +0700 |
|---|---|---|
| committer | Shulhan <m.shulhan@gmail.com> | 2020-10-05 16:46:22 +0700 |
| commit | 454f0c9106f43ea98233f936d9ffa013f1642e0a (patch) | |
| tree | bfa825c2be3b62dff07f7bacccd018dbdbe9d617 | |
| parent | da8b0b06e994b8fd80b08c33ea81e10dec760f96 (diff) | |
| download | pakakeh.go-454f0c9106f43ea98233f936d9ffa013f1642e0a.tar.xz | |
http: increase the debug level from 2 to 3
| -rw-r--r-- | lib/http/endpoint.go | 2 | ||||
| -rw-r--r-- | lib/http/server.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/http/endpoint.go b/lib/http/endpoint.go index fd7105af..d3aa47cd 100644 --- a/lib/http/endpoint.go +++ b/lib/http/endpoint.go @@ -102,7 +102,7 @@ func (ep *Endpoint) call( return } - if debug.Value >= 2 { + if debug.Value >= 3 { log.Printf("> request body: %s\n", reqBody) } if len(vals) > 0 && req.Form == nil { diff --git a/lib/http/server.go b/lib/http/server.go index 3ca3d803..7bec5118 100644 --- a/lib/http/server.go +++ b/lib/http/server.go @@ -265,7 +265,7 @@ func (srv *Server) registerPut(ep *Endpoint) (err error) { // ServeHTTP handle mapping of client request to registered endpoints. // func (srv *Server) ServeHTTP(res http.ResponseWriter, req *http.Request) { - if debug.Value >= 2 { + if debug.Value >= 3 { log.Printf("> ServeHTTP: %s %+v\n", req.Method, req.URL) } |
