tun2: log more info per request

This commit is contained in:
Cadey Ratio 2017-10-01 08:49:59 -07:00
parent 026f061b0a
commit 63e342bba1
No known key found for this signature in database
GPG Key ID: D607EE27C2E7F89A
1 changed files with 7 additions and 4 deletions

View File

@ -520,10 +520,13 @@ func (s *Server) RoundTrip(req *http.Request) (*http.Response, error) {
}
ln.Log(ctx, c, ln.F{
"action": "http_traffic",
"remote_addr": req.RemoteAddr,
"host": req.Host,
"uri": req.RequestURI,
"action": "http traffic",
"remote_addr": req.RemoteAddr,
"host": req.Host,
"uri": req.URL.Path,
"status": resp.Status,
"status_code": resp.StatusCode,
"content_length": resp.ContentLength,
})
return resp, nil