move logging to protocol (#109)

This commit is contained in:
David Colburn
2021-09-09 00:45:42 -07:00
committed by GitHub
parent 63bd531cc8
commit 2a3fb5f0e7
27 changed files with 63 additions and 95 deletions
+2 -2
View File
@@ -9,7 +9,7 @@ import (
"github.com/pion/webrtc/v3"
"github.com/livekit/livekit-server/pkg/config"
"github.com/livekit/livekit-server/pkg/logger"
serverlogger "github.com/livekit/livekit-server/pkg/logger"
)
const (
@@ -41,7 +41,7 @@ func NewWebRTCConfig(conf *config.Config, externalIP string) (*WebRTCConfig, err
SDPSemantics: webrtc.SDPSemanticsUnifiedPlan,
}
s := webrtc.SettingEngine{
LoggerFactory: logger.LoggerFactory(),
LoggerFactory: serverlogger.LoggerFactory(),
}
if externalIP != "" {
+1 -1
View File
@@ -6,6 +6,7 @@ import (
"sync/atomic"
"time"
"github.com/livekit/protocol/logger"
livekit "github.com/livekit/protocol/proto"
"github.com/livekit/protocol/utils"
"github.com/pion/ion-sfu/pkg/buffer"
@@ -16,7 +17,6 @@ import (
"github.com/pion/webrtc/v3/pkg/rtcerr"
"github.com/livekit/livekit-server/pkg/config"
"github.com/livekit/livekit-server/pkg/logger"
"github.com/livekit/livekit-server/pkg/rtc/types"
"github.com/livekit/livekit-server/pkg/utils/stats"
)
+1 -1
View File
@@ -7,6 +7,7 @@ import (
"sync/atomic"
"time"
"github.com/livekit/protocol/logger"
livekit "github.com/livekit/protocol/proto"
"github.com/livekit/protocol/utils"
"github.com/pion/ion-sfu/pkg/sfu"
@@ -17,7 +18,6 @@ import (
"google.golang.org/protobuf/proto"
"github.com/livekit/livekit-server/pkg/config"
"github.com/livekit/livekit-server/pkg/logger"
"github.com/livekit/livekit-server/pkg/routing"
"github.com/livekit/livekit-server/pkg/rtc/types"
"github.com/livekit/livekit-server/pkg/utils/stats"
+1 -1
View File
@@ -7,13 +7,13 @@ import (
"sync/atomic"
"time"
"github.com/livekit/protocol/logger"
livekit "github.com/livekit/protocol/proto"
"github.com/livekit/protocol/utils"
"github.com/pion/ion-sfu/pkg/buffer"
"google.golang.org/protobuf/proto"
"github.com/livekit/livekit-server/pkg/config"
"github.com/livekit/livekit-server/pkg/logger"
"github.com/livekit/livekit-server/pkg/rtc/types"
"github.com/livekit/livekit-server/pkg/utils/stats"
)
+2 -2
View File
@@ -9,7 +9,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/livekit/livekit-server/pkg/config"
"github.com/livekit/livekit-server/pkg/logger"
serverlogger "github.com/livekit/livekit-server/pkg/logger"
"github.com/livekit/livekit-server/pkg/rtc"
"github.com/livekit/livekit-server/pkg/rtc/types"
"github.com/livekit/livekit-server/pkg/rtc/types/typesfakes"
@@ -23,7 +23,7 @@ const (
)
func init() {
logger.InitDevelopment("")
serverlogger.InitDevelopment("")
}
func TestJoinedState(t *testing.T) {
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"net"
"syscall"
"github.com/livekit/livekit-server/pkg/logger"
"github.com/livekit/protocol/logger"
)
func checkUDPReadBuffer() {
+1 -1
View File
@@ -5,11 +5,11 @@ import (
"time"
"github.com/bep/debounce"
"github.com/livekit/protocol/logger"
livekit "github.com/livekit/protocol/proto"
"github.com/pion/interceptor"
"github.com/pion/webrtc/v3"
"github.com/livekit/livekit-server/pkg/logger"
"github.com/livekit/livekit-server/pkg/utils/stats"
)
+1 -1
View File
@@ -6,10 +6,10 @@ import (
"io"
"strings"
"github.com/livekit/protocol/logger"
livekit "github.com/livekit/protocol/proto"
"github.com/pion/webrtc/v3"
"github.com/livekit/livekit-server/pkg/logger"
"github.com/livekit/livekit-server/pkg/rtc/types"
)