Bugfix the new streamserver

This commit is contained in:
Dmitrii Okunev
2024-10-10 01:14:20 +01:00
parent 4130ec8500
commit 1ce55d5f73
9 changed files with 73 additions and 24 deletions

View File

@@ -10,6 +10,7 @@ import (
child_process_manager "github.com/AgustinSRG/go-child-process-manager"
"github.com/facebookincubator/go-belt/tool/experimental/errmon"
"github.com/facebookincubator/go-belt/tool/logger"
"github.com/xaionaro-go/streamctl/pkg/observability"
"github.com/xaionaro-go/streamctl/pkg/streamserver/implementations/libav/saferecoder/process/client"
)
@@ -46,7 +47,7 @@ func Run(
}
c := client.New(d.ListenAddr)
level := logger.FromCtx(ctx).Level()
level := observability.LogLevelFilter.GetLevel()
if err := c.SetLoggingLevel(ctx, level); err != nil {
return nil, fmt.Errorf("unable to set the logging level to %s: %w", level, err)
}