mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 13:46:43 +00:00
More meaningful logging, including request method.
This commit is contained in:
parent
c661ed0d7d
commit
c6b737b634
1 changed files with 1 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ func handler(w http.ResponseWriter, r *http.Request, a *api.Api) {
|
||||||
// return
|
// return
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
glog.V(logger.Debug).Infof("[BZZ] Swarm: HTTP request URL: '%s', Host: '%s', Path: '%s', Referer: '%s', Accept: '%s'", r.RequestURI, requestURL.Host, requestURL.Path, r.Referer(), r.Header.Get("Accept"))
|
glog.V(logger.Debug).Infof("[BZZ] Swarm: HTTP %s request URL: '%s', Host: '%s', Path: '%s', Referer: '%s', Accept: '%s'", r.Method, r.RequestURI, requestURL.Host, requestURL.Path, r.Referer(), r.Header.Get("Accept"))
|
||||||
uri := requestURL.Path
|
uri := requestURL.Path
|
||||||
var raw, nameresolver bool
|
var raw, nameresolver bool
|
||||||
var proto string
|
var proto string
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue