tun2: log more info per request
This commit is contained in:
parent
026f061b0a
commit
63e342bba1
|
@ -520,10 +520,13 @@ func (s *Server) RoundTrip(req *http.Request) (*http.Response, error) {
|
|||
}
|
||||
|
||||
ln.Log(ctx, c, ln.F{
|
||||
"action": "http_traffic",
|
||||
"action": "http traffic",
|
||||
"remote_addr": req.RemoteAddr,
|
||||
"host": req.Host,
|
||||
"uri": req.RequestURI,
|
||||
"uri": req.URL.Path,
|
||||
"status": resp.Status,
|
||||
"status_code": resp.StatusCode,
|
||||
"content_length": resp.ContentLength,
|
||||
})
|
||||
|
||||
return resp, nil
|
||||
|
|
Loading…
Reference in New Issue