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 -1
View File
@@ -21,7 +21,8 @@ import (
"google.golang.org/protobuf/encoding/protojson"
"google.golang.org/protobuf/proto"
"github.com/livekit/livekit-server/pkg/logger"
"github.com/livekit/protocol/logger"
"github.com/livekit/livekit-server/pkg/rtc"
)
+1 -1
View File
@@ -12,7 +12,7 @@ import (
"github.com/pion/webrtc/v3/pkg/media/ivfreader"
"github.com/pion/webrtc/v3/pkg/media/oggreader"
"github.com/livekit/livekit-server/pkg/logger"
"github.com/livekit/protocol/logger"
)
// Writes a file to an RTP track.
+3 -2
View File
@@ -10,12 +10,13 @@ import (
"github.com/go-redis/redis/v8"
"github.com/livekit/protocol/auth"
"github.com/livekit/protocol/logger"
livekit "github.com/livekit/protocol/proto"
"github.com/livekit/protocol/utils"
"github.com/twitchtv/twirp"
"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/routing"
"github.com/livekit/livekit-server/pkg/service"
"github.com/livekit/livekit-server/pkg/testutils"
@@ -42,7 +43,7 @@ var (
)
func init() {
logger.InitDevelopment("")
serverlogger.InitDevelopment("")
}
func setupSingleNodeTest(name string, roomName string) (*service.LivekitServer, func()) {
+3 -3
View File
@@ -4,11 +4,11 @@ import (
"testing"
"time"
"github.com/livekit/livekit-server/pkg/testutils"
testclient "github.com/livekit/livekit-server/test/client"
"github.com/livekit/protocol/logger"
"github.com/stretchr/testify/require"
"github.com/livekit/livekit-server/pkg/logger"
"github.com/livekit/livekit-server/pkg/testutils"
testclient "github.com/livekit/livekit-server/test/client"
)
// a scenario with lots of clients connecting, publishing, and leaving at random periods
+1 -1
View File
@@ -9,6 +9,7 @@ import (
"testing"
"github.com/livekit/protocol/auth"
"github.com/livekit/protocol/logger"
livekit "github.com/livekit/protocol/proto"
"github.com/livekit/protocol/utils"
"github.com/livekit/protocol/webhook"
@@ -16,7 +17,6 @@ import (
"google.golang.org/protobuf/encoding/protojson"
"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/service"
"github.com/livekit/livekit-server/pkg/testutils"