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

added a high quality print on identity fingerprint failure on trace mode

parent a0e433d8
No related branches found
No related tags found
No related merge requests found
...@@ -53,6 +53,14 @@ func (m *Manager) handleMessage(ecrMsg format.Message, identity reception.Identi ...@@ -53,6 +53,14 @@ func (m *Manager) handleMessage(ecrMsg format.Message, identity reception.Identi
jww.FATAL.Panicf("Could not check IdentityFingerprint: %+v", err) jww.FATAL.Panicf("Could not check IdentityFingerprint: %+v", err)
} }
if !forMe { if !forMe {
if jww.GetLogThreshold()==jww.LevelTrace{
expectedFP, _ := fingerprint2.IdentityFP(ecrMsg.GetContents(),
identity.Source)
jww.TRACE.Printf("Message for %d (%s) failed identity " +
"check: %v (expected) vs %v (received)", identity.EphId,
identity.Source, expectedFP, ecrMsg.GetIdentityFP(), )
}
return return
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment