mirror of
https://github.com/openlibrecommunity/olcrtc.git
synced 2026-06-07 21:04:42 +00:00
feat: configure livekit logger suppression for production
This commit is contained in:
@@ -12,6 +12,8 @@ import (
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
lksdk "github.com/livekit/server-sdk-go/v2"
|
||||
protoLogger "github.com/livekit/protocol/logger"
|
||||
"github.com/openlibrecommunity/olcrtc/internal/app/session"
|
||||
"github.com/openlibrecommunity/olcrtc/internal/logger"
|
||||
"github.com/openlibrecommunity/olcrtc/internal/names"
|
||||
@@ -140,7 +142,10 @@ func parseFlags() config {
|
||||
func configureLogging(debug bool) {
|
||||
if debug {
|
||||
logger.SetVerbose(true)
|
||||
return
|
||||
}
|
||||
// Suppress noisy LiveKit/pion logs unless debug is enabled.
|
||||
lksdk.SetLogger(protoLogger.GetDiscardLogger())
|
||||
}
|
||||
|
||||
func resolveDataDir(dataDir string) (string, error) {
|
||||
|
||||
Reference in New Issue
Block a user