From 00d5b73a58d23b4180bfe9807dc47fb6cad60d09 Mon Sep 17 00:00:00 2001 From: Albert Date: Sat, 24 Feb 2024 17:32:57 +0800 Subject: [PATCH] feat: add log --- eth/backend.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eth/backend.go b/eth/backend.go index e5c22e3ba..3bf050061 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -306,12 +306,15 @@ func New(stack *node.Node, config *ethconfig.Config) (*Ethereum, error) { } if config.RollupSequencerHTTP != "" { + log.Info("Rollup sequencer RPC service enabled", "url", config.RollupSequencerHTTP) ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second) client, err := rpc.DialContext(ctx, config.RollupSequencerHTTP) cancel() if err != nil { + log.Error("Failed to connect to rollup sequencer RPC service", "err", err) return nil, err } + log.Info("Rollup sequencer RPC service connected", "url", config.RollupSequencerHTTP) eth.seqRPCService = client }