From 9823874a37a9b22b9f55089446a43cf6d7b999a4 Mon Sep 17 00:00:00 2001 From: Nikita Kryuchkov Date: Mon, 9 Mar 2020 16:21:09 +0100 Subject: [PATCH] Remove logging of every packet contents --- pkg/router/router.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/router/router.go b/pkg/router/router.go index 577e20d209..afa11131fc 100644 --- a/pkg/router/router.go +++ b/pkg/router/router.go @@ -416,8 +416,8 @@ func (r *router) handleDataPacket(ctx context.Context, packet routing.Packet) er return errors.New("RouteGroup is nil") } - r.logger.Infof("Got new remote packet with route ID %d. Using rule: %s", packet.RouteID(), rule) - r.logger.Infof("Packet contents (len = %d): %v", len(packet.Payload()), packet.Payload()) + r.logger.Infof("Got new remote packet with size %d and route ID %d. Using rule: %s", + len(packet.Payload()), packet.RouteID(), rule) return rg.handlePacket(packet) } @@ -465,8 +465,8 @@ func (r *router) handleClosePacket(ctx context.Context, packet routing.Packet) e return errors.New("RouteGroup is nil") } - r.logger.Infof("Got new remote close packet with route ID %d. Using rule: %s", packet.RouteID(), rule) - r.logger.Infof("Packet contents (len = %d): %v", len(packet.Payload()), packet.Payload()) + r.logger.Infof("Got new remote close packet with size %d and route ID %d. Using rule: %s", + len(packet.Payload()), packet.RouteID(), rule) closeCode := routing.CloseCode(packet.Payload()[0])