From a2996f6343382e8915a2dfeb81f45a3d5295d7d7 Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Fri, 11 Nov 2016 10:31:14 +0700 Subject: [PATCH] improve logging in client --- client.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client.go b/client.go index e85e38ff..5fa62430 100644 --- a/client.go +++ b/client.go @@ -33,6 +33,8 @@ func NewClient(addr *net.UDPAddr) (*Client, error) { rand.Seed(time.Now().UTC().UnixNano()) connectionID := protocol.ConnectionID(rand.Int63()) + utils.Infof("Starting new connection to %s, connectionID %x", addr.String(), connectionID) + client := &Client{ addr: addr, conn: conn, @@ -59,7 +61,6 @@ func (c *Client) Listen() { data = data[:protocol.MaxPacketSize] n, _, err := c.conn.ReadFromUDP(data) - utils.Debugf("%d", n) if err != nil { panic(err) }