Skip to content

Commit 53bffb4

Browse files
committed
face: adjust logging
1 parent 13b5778 commit 53bffb4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

face/table.go

+6-2
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,17 @@ func init() {
3333
go FaceTable.ExpirationHandler()
3434
}
3535

36+
func (t *Table) String() string {
37+
return "FaceTable"
38+
}
39+
3640
// Add adds a face to the face table.
3741
func (t *Table) Add(face LinkService) {
3842
faceID := t.nextFaceID.Add(1) - 1
3943
face.SetFaceID(faceID)
4044
t.faces.Store(faceID, face)
4145
dispatch.AddFace(faceID, face)
42-
core.LogDebug("FaceTable", "Registered FaceID=", faceID)
46+
core.LogDebug(t, "Registered FaceID=", faceID)
4347
}
4448

4549
// Get gets the face with the specified ID (if any) from the face table.
@@ -80,7 +84,7 @@ func (t *Table) Remove(id uint64) {
8084
t.faces.Delete(id)
8185
dispatch.RemoveFace(id)
8286
table.Rib.CleanUpFace(id)
83-
core.LogDebug("FaceTable", "Unregistered FaceID=", id)
87+
core.LogInfo(t, "Unregistered FaceID=", id)
8488
}
8589

8690
// ExpirationHandler stops the faces that have expired

0 commit comments

Comments
 (0)