From 3736c152c1aba4fb2ab6a48b148a1ec58db39db4 Mon Sep 17 00:00:00 2001 From: 0xdcarns Date: Sat, 29 Jan 2022 09:15:20 -0500 Subject: [PATCH] added log --- mq/util.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mq/util.go b/mq/util.go index 8541c279..0066fb9a 100644 --- a/mq/util.go +++ b/mq/util.go @@ -19,10 +19,12 @@ func decryptMsg(msg []byte) ([]byte, error) { } func encrypt(node *models.Node, dest string, msg []byte) ([]byte, error) { + fmt.Printf("original length: %d \n", len(msg)) encrypted := ncutils.BuildMessage(msg, &node.TrafficKeys.Mine) if encrypted == "" { return nil, fmt.Errorf("could not encrypt message") } + fmt.Printf("resulting length: %d \n", len(encrypted)) return []byte(encrypted), nil }