Skip to content
Snippets Groups Projects
Commit 96b16970 authored by Josh Brooks's avatar Josh Brooks
Browse files

Updated debug logs

parent acd538a8
No related branches found
No related tags found
1 merge request!23Release
......@@ -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
}
......
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment