Skip to content

Commit

Permalink
Remove logging of every packet contents
Browse files Browse the repository at this point in the history
  • Loading branch information
nkryuchkov committed Mar 9, 2020
1 parent 9a8708b commit 9823874
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down Expand Up @@ -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])

Expand Down

0 comments on commit 9823874

Please sign in to comment.