From bb255b81f1f7ff083e73c02f71b5b21ae553a8b4 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Wed, 5 Apr 2017 15:24:25 -0700 Subject: [PATCH] tun2: remove debugging log lines --- lib/tun2/server.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/lib/tun2/server.go b/lib/tun2/server.go index f3cea7f..8706ddc 100644 --- a/lib/tun2/server.go +++ b/lib/tun2/server.go @@ -195,11 +195,6 @@ func (c *Connection) Ping() error { } defer stream.Close() - ln.Log(c.F(), ln.F{ - "action": "stream_opened", - "stream_id": stream.(*smux.Stream).ID(), - }) - stream.SetWriteDeadline(time.Now().Add(time.Second)) err = req.Write(stream) if err != nil { @@ -208,10 +203,6 @@ func (c *Connection) Ping() error { return err } - ln.Log(c.F(), ln.F{ - "action": "wrote_request", - }) - stream.SetReadDeadline(time.Now().Add(5 * time.Second)) _, err = stream.Read(make([]byte, 30)) if err != nil { @@ -222,10 +213,6 @@ func (c *Connection) Ping() error { c.detector.Ping(time.Now()) - ln.Log(c.F(), ln.F{ - "action": "ping_is_ok", - }) - return nil }