From 9ba656868459bf0ca0fdc6a7c115ae4ddb51d0fa Mon Sep 17 00:00:00 2001 From: cuisongliu Date: Fri, 29 Dec 2023 09:40:27 +0800 Subject: [PATCH] feature(main): add registry config (#6) Signed-off-by: cuisongliu --- pkg/registry/handler/handler.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/registry/handler/handler.go b/pkg/registry/handler/handler.go index 8061926..15d49cd 100644 --- a/pkg/registry/handler/handler.go +++ b/pkg/registry/handler/handler.go @@ -19,6 +19,7 @@ import ( "bytes" "context" "fmt" + "github.com/labring/sreg/pkg/utils/logger" "io" "net" "net/http" @@ -94,6 +95,7 @@ func configureLogging(ctx context.Context, config *configuration.Configuration) func New(ctx context.Context, config *configuration.Configuration) (*http.Server, error) { ctx = configureLogging(ctx, config) + logger.Debug("registry config: %+v", config) return &http.Server{ Handler: handlers.NewApp(ctx, config), }, nil