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

Add print

parent 74f51226
No related branches found
No related tags found
2 merge requests!510Release,!396Remove restoring backed up facts from bindings NewUdManagerFromBackup call
...@@ -70,8 +70,12 @@ func (s *Store) GetUsername() (string, error) { ...@@ -70,8 +70,12 @@ func (s *Store) GetUsername() (string, error) {
// todo: refactor this in the future so that // todo: refactor this in the future so that
// it's an O(1) lookup (place this object in another map // it's an O(1) lookup (place this object in another map
// or have it's own field) // or have it's own field)
jww.INFO.Printf("USERNAME BACKUP DEBUG (GetUsername): map: %+v", s.confirmedFacts)
for f := range s.confirmedFacts { for f := range s.confirmedFacts {
if f.T == fact.Username { if f.T == fact.Username {
jww.INFO.Printf("USERNAME BACKUP DEBUG (GetUsername): found fact: %+v", f)
return f.Fact, nil return f.Fact, nil
} }
} }
...@@ -174,12 +178,12 @@ func (s *Store) BackUpMissingFacts(username, email, phone fact.Fact) error { ...@@ -174,12 +178,12 @@ func (s *Store) BackUpMissingFacts(username, email, phone fact.Fact) error {
} }
} }
jww.INFO.Printf("USERNAME BACKUP DEBUG (BackUpMissingFacts): fact map after %+v", s.confirmedFacts)
if modified { if modified {
return s.saveConfirmedFacts() return s.saveConfirmedFacts()
} }
jww.INFO.Printf("USERNAME BACKUP DEBUG (BackUpMissingFacts): fact map after %+v", s.confirmedFacts)
return nil return nil
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment