Skip to content

Commit 9ba6568

Browse files
authored
feature(main): add registry config (#6)
Signed-off-by: cuisongliu <cuisongliu@qq.com>
1 parent e87f993 commit 9ba6568

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/registry/handler/handler.go

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import (
1919
"bytes"
2020
"context"
2121
"fmt"
22+
"github.com/labring/sreg/pkg/utils/logger"
2223
"io"
2324
"net"
2425
"net/http"
@@ -94,6 +95,7 @@ func configureLogging(ctx context.Context, config *configuration.Configuration)
9495

9596
func New(ctx context.Context, config *configuration.Configuration) (*http.Server, error) {
9697
ctx = configureLogging(ctx, config)
98+
logger.Debug("registry config: %+v", config)
9799
return &http.Server{
98100
Handler: handlers.NewApp(ctx, config),
99101
}, nil

0 commit comments

Comments
 (0)