From 96b1697014e12fcbbc6f7085468f155a47f3317c Mon Sep 17 00:00:00 2001
From: josh <josh@elixxir.io>
Date: Thu, 27 May 2021 15:44:48 -0700
Subject: [PATCH] Updated debug logs

---
 api/client.go         | 1 +
 storage/auth/store.go | 5 ++---
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/api/client.go b/api/client.go
index 3aca2f12a..ce660e1c1 100644
--- a/api/client.go
+++ b/api/client.go
@@ -543,6 +543,7 @@ func (c *Client) GetNodeRegistrationStatus() (int, int, error) {
 
 // DeleteContact is a function which removes a partner from Client's storage
 func (c *Client) DeleteContact(partnerId *id.ID) error  {
+	jww.DEBUG.Printf("Deleting contact ID %s", partnerId)
 	if err := c.storage.E2e().DeletePartner(partnerId); err != nil {
 		return err
 	}
diff --git a/storage/auth/store.go b/storage/auth/store.go
index 795147cd6..616ef5c06 100644
--- a/storage/auth/store.go
+++ b/storage/auth/store.go
@@ -92,8 +92,7 @@ func LoadStore(kv *versioned.KV, grp *cyclic.Group, privKeys []*cyclic.Int) (*St
 		return nil, errors.WithMessagef(err, "Failed to "+
 			"unmarshal SentRequestMap")
 	}
-	jww.INFO.Printf("Loaded requestIDlist: %s", string(sentObj.Data))
-	jww.INFO.Printf("Loading Auth Store for %d contacts", len(requestList))
+	jww.DEBUG.Printf("Loading Auth Store for %d contact(s)", len(requestList))
 	for _, rDisk := range requestList {
 		r := &request{
 			rt: RequestType(rDisk.T),
@@ -223,7 +222,7 @@ func (s *Store) AddSent(partner *id.ID, partnerHistoricalPubKey, myPrivKey,
 func (s *Store) AddReceived(c contact.Contact) error {
 	s.mux.Lock()
 	defer s.mux.Unlock()
-	jww.INFO.Printf("AddReceived contact %s", c.ID)
+	jww.DEBUG.Printf("AddReceived new contact: %s", c.ID)
 	if _, ok := s.requests[*c.ID]; ok {
 		return errors.Errorf("Cannot add contact for partner "+
 			"%s, one already exists", c.ID)
-- 
GitLab