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

added a better print on identity removal

parent 6481e2a5
No related branches found
No related tags found
Loading
......@@ -275,7 +275,8 @@ func (s *Store) RemoveIdentities(source *id.ID) {
inQuestion := s.active[i]
if inQuestion.Source.Cmp(source) {
s.active = append(s.active[:i], s.active[i+1:]...)
jww.INFO.Printf("Removing Identity %s:%d from tracker",
inQuestion.Source, inQuestion.EphId)
err := inQuestion.Delete()
if err != nil {
jww.FATAL.Panicf("Failed to delete identity: %+v", err)
......
......@@ -216,7 +216,6 @@ func (t *manager) track(stop *stoppable.Single) {
for i := range t.tracked {
inQuestion := t.tracked[i]
if inQuestion.Source.Cmp(deleteID) {
jww.INFO.Printf("Removing Identity %s from tracker", deleteID)
removed = true
t.tracked = append(t.tracked[:i], t.tracked[i+1:]...)
t.save()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment