File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -33,13 +33,17 @@ func init() {
33
33
go FaceTable .ExpirationHandler ()
34
34
}
35
35
36
+ func (t * Table ) String () string {
37
+ return "FaceTable"
38
+ }
39
+
36
40
// Add adds a face to the face table.
37
41
func (t * Table ) Add (face LinkService ) {
38
42
faceID := t .nextFaceID .Add (1 ) - 1
39
43
face .SetFaceID (faceID )
40
44
t .faces .Store (faceID , face )
41
45
dispatch .AddFace (faceID , face )
42
- core .LogDebug ("FaceTable" , "Registered FaceID=" , faceID )
46
+ core .LogDebug (t , "Registered FaceID=" , faceID )
43
47
}
44
48
45
49
// Get gets the face with the specified ID (if any) from the face table.
@@ -80,7 +84,7 @@ func (t *Table) Remove(id uint64) {
80
84
t .faces .Delete (id )
81
85
dispatch .RemoveFace (id )
82
86
table .Rib .CleanUpFace (id )
83
- core .LogDebug ( "FaceTable" , "Unregistered FaceID=" , id )
87
+ core .LogInfo ( t , "Unregistered FaceID=" , id )
84
88
}
85
89
86
90
// ExpirationHandler stops the faces that have expired
You can’t perform that action at this time.
0 commit comments