From de0073211b1d6893e14a8a368c103329090acdfe Mon Sep 17 00:00:00 2001 From: Benjamin Wenger <ben@elixxir.ioo> Date: Tue, 23 Feb 2021 13:44:53 -0800 Subject: [PATCH] added a print when a message cannot be sent due to missing node keys --- network/message/sendCmix.go | 3 +++ storage/reception/store.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/network/message/sendCmix.go b/network/message/sendCmix.go index 44780f5c3..88f351828 100644 --- a/network/message/sendCmix.go +++ b/network/message/sendCmix.go @@ -142,6 +142,9 @@ func sendCmixHelper(msg format.Message, recipient *id.ID, param params.CMIX, ins //keying relationships roundKeys, missingKeys := session.Cmix().GetRoundKeys(topology) if len(missingKeys) > 0 { + jww.WARN.Printf("Failed to send on round %d to %s " + + "(msgDigest: %s) due to missing relationships with nodes: %s", + bestRound.ID, recipient, msg.Digest(), missingKeys) go handleMissingNodeKeys(instance, nodeRegistration, missingKeys) time.Sleep(param.RetryDelay) continue diff --git a/storage/reception/store.go b/storage/reception/store.go index 0802ccc98..e95f9281f 100644 --- a/storage/reception/store.go +++ b/storage/reception/store.go @@ -342,7 +342,7 @@ func (s *Store) selectIdentity(rng io.Reader, now time.Time) (IdentityUse, error selected.ExtraChecks-- } - jww.DEBUG.Printf("Selected identity: EphId: %d ID: %s End: %s StartValid: %s EndValid: %s", + jww.TRACE.Printf("Selected identity: EphId: %d ID: %s End: %s StartValid: %s EndValid: %s", selected.EphId.Int64(), selected.Source, selected.End.Format("01/02/06 03:04:05 pm"), selected.StartValid.Format("01/02/06 03:04:05 pm"), selected.EndValid.Format("01/02/06 03:04:05 pm")) -- GitLab