From 9a893f90f7e9879c2d7063ce8c4dae32968e9f21 Mon Sep 17 00:00:00 2001
From: Benjamin Wenger <ben@elixxir.ioo>
Date: Thu, 11 Feb 2021 13:14:24 -0800
Subject: [PATCH] added a print on id creation which prints the currently
 active ID

---
 network/ephemeral/tracker.go | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/network/ephemeral/tracker.go b/network/ephemeral/tracker.go
index 4ebc5b9d2..9301892ad 100644
--- a/network/ephemeral/tracker.go
+++ b/network/ephemeral/tracker.go
@@ -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
-- 
GitLab