log: consistent log key (#60)

This commit is contained in:
hn8
2021-07-19 10:28:51 -07:00
committed by GitHub
parent 06c44ca8f6
commit 87dfb2b117
9 changed files with 79 additions and 69 deletions
+2 -2
View File
@@ -563,7 +563,7 @@ func (c *RTCClient) processTrack(track *webrtc.TrackRemote) {
c.lock.Unlock()
logger.Debugw("client added track", "participant", c.localParticipant.Identity,
"source", pId,
"pID", pId,
"track", trackId,
)
@@ -593,7 +593,7 @@ func (c *RTCClient) processTrack(track *webrtc.TrackRemote) {
numBytes += pkt.MarshalSize()
if time.Now().Sub(lastUpdate) > 30*time.Second {
logger.Debugw("consumed from participant",
"track", trackId, "participant", pId,
"track", trackId, "pID", pId,
"size", numBytes)
lastUpdate = time.Now()
}