tun2: remove debugging log lines
This commit is contained in:
parent
581420b768
commit
bb255b81f1
|
@ -195,11 +195,6 @@ func (c *Connection) Ping() error {
|
||||||
}
|
}
|
||||||
defer stream.Close()
|
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))
|
stream.SetWriteDeadline(time.Now().Add(time.Second))
|
||||||
err = req.Write(stream)
|
err = req.Write(stream)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -208,10 +203,6 @@ func (c *Connection) Ping() error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
ln.Log(c.F(), ln.F{
|
|
||||||
"action": "wrote_request",
|
|
||||||
})
|
|
||||||
|
|
||||||
stream.SetReadDeadline(time.Now().Add(5 * time.Second))
|
stream.SetReadDeadline(time.Now().Add(5 * time.Second))
|
||||||
_, err = stream.Read(make([]byte, 30))
|
_, err = stream.Read(make([]byte, 30))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -222,10 +213,6 @@ func (c *Connection) Ping() error {
|
||||||
|
|
||||||
c.detector.Ping(time.Now())
|
c.detector.Ping(time.Now())
|
||||||
|
|
||||||
ln.Log(c.F(), ln.F{
|
|
||||||
"action": "ping_is_ok",
|
|
||||||
})
|
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue