From 8befc8224aed44d6d92bd1cbd9642349edf3e639 Mon Sep 17 00:00:00 2001 From: Paul Wells Date: Fri, 27 Sep 2024 16:52:34 -0700 Subject: [PATCH] use canonical room log field name (#3054) --- pkg/service/sip.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/service/sip.go b/pkg/service/sip.go index 255ec06b..9c718a99 100644 --- a/pkg/service/sip.go +++ b/pkg/service/sip.go @@ -20,6 +20,8 @@ import ( "fmt" "time" + "google.golang.org/protobuf/types/known/emptypb" + "github.com/livekit/protocol/livekit" "github.com/livekit/protocol/logger" "github.com/livekit/protocol/rpc" @@ -27,7 +29,6 @@ import ( "github.com/livekit/protocol/utils" "github.com/livekit/protocol/utils/guid" "github.com/livekit/psrpc" - "google.golang.org/protobuf/types/known/emptypb" "github.com/livekit/livekit-server/pkg/config" "github.com/livekit/livekit-server/pkg/telemetry" @@ -329,7 +330,7 @@ func (s *SIPService) DeleteSIPDispatchRule(ctx context.Context, req *livekit.Del } func (s *SIPService) CreateSIPParticipant(ctx context.Context, req *livekit.CreateSIPParticipantRequest) (*livekit.SIPParticipantInfo, error) { - log := logger.GetLogger().WithValues("roomName", req.RoomName, "sipTrunk", req.SipTrunkId, "toUser", req.SipCallTo) + log := logger.GetLogger().WithValues("room", req.RoomName, "sipTrunk", req.SipTrunkId, "toUser", req.SipCallTo) ireq, err := s.CreateSIPParticipantRequest(ctx, req, "", "", "", "") if err != nil { log.Errorw("cannot create sip participant request", err)