Skip to content

Commit

Permalink
feature(main): add registry config (#6)
Browse files Browse the repository at this point in the history
Signed-off-by: cuisongliu <[email protected]>
  • Loading branch information
cuisongliu authored Dec 29, 2023
1 parent e87f993 commit 9ba6568
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/registry/handler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (
"bytes"
"context"
"fmt"
"github.com/labring/sreg/pkg/utils/logger"
"io"
"net"
"net/http"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9ba6568

Please sign in to comment.