consolidate log config in webfinger

Signed-off-by: Christian Richter <c.richter@opencloud.eu>
This commit is contained in:
Christian Richter
2026-01-08 13:48:15 +01:00
parent 36b90c8619
commit 25952fc27c
6 changed files with 8 additions and 42 deletions
+2 -2
View File
@@ -6,12 +6,12 @@ import (
"os/signal"
"github.com/opencloud-eu/opencloud/pkg/config/configlog"
"github.com/opencloud-eu/opencloud/pkg/log"
"github.com/opencloud-eu/opencloud/pkg/runner"
"github.com/opencloud-eu/opencloud/pkg/tracing"
"github.com/opencloud-eu/opencloud/pkg/version"
"github.com/opencloud-eu/opencloud/services/webfinger/pkg/config"
"github.com/opencloud-eu/opencloud/services/webfinger/pkg/config/parser"
"github.com/opencloud-eu/opencloud/services/webfinger/pkg/logging"
"github.com/opencloud-eu/opencloud/services/webfinger/pkg/metrics"
"github.com/opencloud-eu/opencloud/services/webfinger/pkg/relations"
"github.com/opencloud-eu/opencloud/services/webfinger/pkg/server/debug"
@@ -30,7 +30,7 @@ func Server(cfg *config.Config) *cobra.Command {
return configlog.ReturnFatal(parser.ParseConfig(cfg))
},
RunE: func(cmd *cobra.Command, args []string) error {
logger := logging.Configure(cfg.Service.Name, cfg.Log)
logger := log.Configure(cfg.Service.Name, cfg.Commons, cfg.LogLevel)
traceProvider, err := tracing.GetTraceProvider(cmd.Context(), cfg.Commons.TracesExporter, cfg.Service.Name)
if err != nil {
return err