From 8e72d9a82743b34d6de315cb466827db5dd66d26 Mon Sep 17 00:00:00 2001 From: Samuel Laferriere Date: Mon, 16 Sep 2024 23:17:09 -0700 Subject: [PATCH] fix: lint --- cmd/server/entrypoint.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/server/entrypoint.go b/cmd/server/entrypoint.go index 220da769..3f6eac2a 100644 --- a/cmd/server/entrypoint.go +++ b/cmd/server/entrypoint.go @@ -13,7 +13,10 @@ import ( ) func StartProxySvr(cliCtx *cli.Context) error { - fmt.Printf("Starting EigenDA Proxy Server - Version %v - Date %v - Commit %v\n", Version, Date, Commit) + log := oplog.NewLogger(oplog.AppOut(cliCtx), oplog.ReadCLIConfig(cliCtx)).New("role", "eigenda_proxy") + oplog.SetGlobalLogHandler(log.Handler()) + log.Info("Starting EigenDA Proxy Server", "version", Version, "date", Date, "commit", Commit) + cfg := server.ReadCLIConfig(cliCtx) if err := cfg.Check(); err != nil { return err @@ -23,9 +26,6 @@ func StartProxySvr(cliCtx *cli.Context) error { m := metrics.NewMetrics("default") - log := oplog.NewLogger(oplog.AppOut(cliCtx), oplog.ReadCLIConfig(cliCtx)).New("role", "eigenda_proxy") - oplog.SetGlobalLogHandler(log.Handler()) - log.Info("Initializing EigenDA proxy server...") daRouter, err := server.LoadStoreRouter(ctx, cfg, log)