Use common logging init functions (#633)

* Use common logging init functions

* update protocol commit

* fix tests
This commit is contained in:
David Zhao
2022-04-20 00:15:11 -07:00
committed by GitHub
parent 431069af95
commit b821a0997d
18 changed files with 59 additions and 81 deletions
+2 -2
View File
@@ -392,7 +392,7 @@ func (r *RoomManager) rtcSessionWorker(room *rtc.Room, participant types.LocalPa
defer rtc.Recover()
pLogger := rtc.LoggerWithParticipant(
rtc.LoggerWithRoom(logger.Logger(logger.GetLogger()), room.Name(), room.ID()),
rtc.LoggerWithRoom(logger.GetDefaultLogger(), room.Name(), room.ID()),
participant.Identity(), participant.ID(),
)
@@ -448,7 +448,7 @@ func (r *RoomManager) handleRTCMessage(_ context.Context, roomName livekit.RoomN
sid = participant.ID()
}
pLogger := rtc.LoggerWithParticipant(
rtc.LoggerWithRoom(logger.Logger(logger.GetLogger()), roomName, room.ID()),
rtc.LoggerWithRoom(logger.GetDefaultLogger(), roomName, room.ID()),
identity,
sid,
)
+1 -1
View File
@@ -182,7 +182,7 @@ func (s *RTCService) ServeHTTP(w http.ResponseWriter, r *http.Request) {
}
pLogger := rtc.LoggerWithParticipant(
rtc.LoggerWithRoom(logger.Logger(logger.GetLogger()), roomName, ""),
rtc.LoggerWithRoom(logger.GetDefaultLogger(), roomName, ""),
pi.Identity, "",
)
done := make(chan struct{})