From 30bcba23c2ef08268bfebdf95f2a3ba5a7a4ef06 Mon Sep 17 00:00:00 2001 From: Sir Darkrengarius Date: Mon, 1 Mar 2021 22:30:57 +0300 Subject: [PATCH] Remove debug logs --- internal/vpn/net.go | 1 - pkg/router/router.go | 2 -- 2 files changed, 3 deletions(-) diff --git a/internal/vpn/net.go b/internal/vpn/net.go index d2f32a4d0f..8dd9b89c36 100644 --- a/internal/vpn/net.go +++ b/internal/vpn/net.go @@ -76,7 +76,6 @@ func ReadJSON(conn net.Conn, data interface{}) error { for { n, err := conn.Read(buf) if err != nil { - fmt.Printf("FAILED TO READ JSON: %v\n", err) return fmt.Errorf("error reading data: %w", err) } diff --git a/pkg/router/router.go b/pkg/router/router.go index a5bc7636be..c3d8354eea 100644 --- a/pkg/router/router.go +++ b/pkg/router/router.go @@ -337,8 +337,6 @@ func (r *router) serveTransportManager(ctx context.Context) { return } - //r.logger.Infof("GOT PACKET: %s %v", packet.Type().String(), packet) - if err := r.handleTransportPacket(ctx, packet); err != nil { if err == transport.ErrNotServing { r.logger.WithError(err).Warnf("Stopped serving Transport.")