From 40f3a9a87ecd90e725fae3de6fd5b74bf86e37e7 Mon Sep 17 00:00:00 2001
From: benjamin <ben@elixxir.io>
Date: Sun, 23 Oct 2022 21:56:30 -0700
Subject: [PATCH] improved the initial print on message sending

---
 cmix/sendCmix.go | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/cmix/sendCmix.go b/cmix/sendCmix.go
index 3815528ec..9c7b95f75 100644
--- a/cmix/sendCmix.go
+++ b/cmix/sendCmix.go
@@ -173,9 +173,6 @@ func sendCmixHelper(sender gateway.Sender, assembler messageAssembler, recipient
 		attempted = excludedRounds.NewSet()
 	}
 
-	jww.INFO.Printf("[Send-%s] Looking for round to send cMix message to "+
-		"%s", cmixParams.DebugTag, recipient)
-
 	stream := rng.GetStream()
 	defer stream.Close()
 
@@ -184,13 +181,23 @@ func sendCmixHelper(sender gateway.Sender, assembler messageAssembler, recipient
 		optimalAttempts, ready := attemptTracker.GetOptimalNumAttempts()
 		if ready {
 			numAttempts = optimalAttempts
+			jww.INFO.Printf("[Send-%s] Looking for round to send cMix message to "+
+				"%s, sending non probe with %d optimalAttempts", cmixParams.DebugTag, recipient, numAttempts)
 		} else {
 			numAttempts = 4
+			jww.INFO.Printf("[Send-%s] Looking for round to send cMix message to "+
+				"%s, sending non probe with %d non optimalAttempts, insufficient data",
+				cmixParams.DebugTag, recipient, numAttempts)
 		}
 	} else {
+		jww.INFO.Printf("[Send-%s] Looking for round to send cMix message to "+
+			"%s, sending probe with %d Attempts, insufficient data",
+			cmixParams.DebugTag, recipient, numAttempts)
 		defer attemptTracker.SubmitProbeAttempt(numAttempts)
 	}
 
+	jww.INFO.Printf("")
+
 	for numRoundTries := uint(0); numRoundTries < cmixParams.RoundTries; numRoundTries,
 		numAttempts = numRoundTries+1, numAttempts+1 {
 		elapsed := netTime.Since(timeStart)
-- 
GitLab