tun2: log more successes

This commit is contained in:
Cadey Ratio 2017-03-26 15:36:58 -07:00
parent bd07937466
commit 098a7e5858
1 changed files with 11 additions and 0 deletions

View File

@ -185,6 +185,10 @@ func (s *Server) ListenAndServe() error {
} }
stream.Close() stream.Close()
ln.Log(ln.F{
"action": "ping_health_is_good",
}, c.F())
} }
s.connlock.Unlock() s.connlock.Unlock()
@ -379,6 +383,13 @@ func (s *Server) RoundTrip(req *http.Request) (*http.Response, error) {
return nil, err 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 return resp, nil
} }