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
+4 -3
View File
@@ -11,10 +11,11 @@ import (
"syscall"
"time"
"github.com/livekit/protocol/logger"
"github.com/urfave/cli/v2"
"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/version"
@@ -155,9 +156,9 @@ func startServer(c *cli.Context) error {
}
if conf.Development {
logger.InitDevelopment(conf.LogLevel)
serverlogger.InitDevelopment(conf.LogLevel)
} else {
logger.InitProduction(conf.LogLevel)
serverlogger.InitProduction(conf.LogLevel)
}
if cpuProfile != "" {