Skip to content

Commit 1240af9

Browse files
committed
style: print config on startup
1 parent c641070 commit 1240af9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cmd/server/entrypoint.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package main
22

33
import (
44
"context"
5+
"encoding/json"
56
"fmt"
67

78
"github.com/Layr-Labs/eigenda-proxy/flags"
@@ -25,7 +26,11 @@ func StartProxySvr(cliCtx *cli.Context) error {
2526
ctx, ctxCancel := context.WithCancel(cliCtx.Context)
2627
defer ctxCancel()
2728

28-
log.Info("Initializing EigenDA proxy server...")
29+
configJSON, err := json.MarshalIndent(cfg, "", " ")
30+
if err != nil {
31+
return fmt.Errorf("failed to marshal config: %w", err)
32+
}
33+
log.Info(fmt.Sprintf("Initializing EigenDA proxy server with config: %v", string(configJSON)))
2934

3035
daRouter, err := server.LoadStoreRouter(ctx, cfg, log)
3136
if err != nil {

0 commit comments

Comments
 (0)