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

added a print on id creation which prints the currently active ID

parent a5bd14fb
No related branches found
No related tags found
No related merge requests found
......@@ -64,10 +64,10 @@ func track(session *storage.Session, ourId *id.ID, stop *stoppable.Single) {
protoIds, err := ephemeral.GetIdsByRange(ourId, receptionStore.GetIDSize(),
now.UnixNano(), now.Sub(lastCheck))
jww.INFO.Printf("Now: %d, LastCheck: %v (%v), Different: %v (%v)",
jww.DEBUG.Printf("Now: %d, LastCheck: %v (%v), Different: %v (%v)",
now.UnixNano(), lastCheck, lastCheck, now.Sub(lastCheck), now.Sub(lastCheck))
jww.INFO.Printf("protoIds Count: %d", len(protoIds))
jww.DEBUG.Printf("protoIds Count: %d", len(protoIds))
if err != nil {
jww.FATAL.Panicf("Could not generate "+
......@@ -80,6 +80,9 @@ func track(session *storage.Session, ourId *id.ID, stop *stoppable.Single) {
jww.INFO.Printf("Number of Identities Generated: %d",
len(identities))
jww.INFO.Printf("Current Identity: %d, Start: %s, End: %s",
identities[len(identities)-1].EphId.Int64(), identities[len(identities)-1].StartValid, identities[len(identities)-1].EndValid)
// Add identities to storage if unique
for _, identity := range identities {
// Track if identity has been generated already
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment