From 098a7e5858a7059cecbbdf45eddccbcbc73247c9 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Sun, 26 Mar 2017 15:36:58 -0700 Subject: [PATCH] tun2: log more successes --- lib/tun2/server.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/tun2/server.go b/lib/tun2/server.go index a2e0004..9fef581 100644 --- a/lib/tun2/server.go +++ b/lib/tun2/server.go @@ -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 }