Skip to content
Snippets Groups Projects
Commit de007321 authored by Benjamin Wenger's avatar Benjamin Wenger
Browse files

added a print when a message cannot be sent due to missing node keys

parent d583dc09
Branches
Tags
No related merge requests found
......@@ -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
......
......@@ -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"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment