mirror of
https://github.com/livekit/livekit.git
synced 2026-10-23 02:12:44 +00:00
Use logger from request context. (#3623)
That will have projectID and can potentially be used for project level logging if we are able to pass around the project logger more.
This commit is contained in:
1 parent
34a2e2c107
commit
b760918a0d
3 files changed
+6
-4
No files matched your search
@@ -25,6 +25,7 @@ import (
|
||||
|
||||
"github.com/livekit/livekit-server/pkg/config"
|
||||
"github.com/livekit/livekit-server/pkg/telemetry/prometheus"
|
||||
"github.com/livekit/livekit-server/pkg/utils"
|
||||
"github.com/livekit/protocol/livekit"
|
||||
"github.com/livekit/protocol/logger"
|
||||
"github.com/livekit/protocol/rpc"
|
||||
@@ -88,7 +89,7 @@ func (r *signalClient) StartParticipantSignal(
|
||||
return
|
||||
}
|
||||
|
||||
l := logger.GetLogger().WithValues(
|
||||
l := utils.GetLogger(ctx).WithValues(
|
||||
"room", roomName,
|
||||
"reqNodeID", nodeID,
|
||||
"participant", pi.Identity,
|
||||
|
||||
Reference in new issue
Block a user