tun2: log more successes
This commit is contained in:
parent
bd07937466
commit
098a7e5858
|
@ -185,6 +185,10 @@ func (s *Server) ListenAndServe() error {
|
|||
}
|
||||
|
||||
stream.Close()
|
||||
|
||||
ln.Log(ln.F{
|
||||
"action": "ping_health_is_good",
|
||||
}, c.F())
|
||||
}
|
||||
|
||||
s.connlock.Unlock()
|
||||
|
@ -379,6 +383,13 @@ func (s *Server) RoundTrip(req *http.Request) (*http.Response, error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
ln.Log(c.F(), ln.F{
|
||||
"action": "http_traffic",
|
||||
"remote_addr": req.RemoteAddr,
|
||||
"host": req.Host,
|
||||
"uri": req.RequestURI,
|
||||
})
|
||||
|
||||
return resp, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue