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
+4 -1
View File
@@ -8,6 +8,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/livekit/protocol/livekit"
"github.com/livekit/protocol/logger"
"github.com/livekit/protocol/webhook"
"github.com/livekit/livekit-server/pkg/config"
@@ -27,7 +28,9 @@ const (
)
func init() {
serverlogger.InitFromConfig(config.LoggingConfig{Level: "debug"})
serverlogger.InitFromConfig(config.LoggingConfig{
Config: logger.Config{Level: "debug"},
})
}
var iceServersForRoom = []*livekit.ICEServer{{Urls: []string{"stun:stun.l.google.com:19302"}}}