From 69646d3d4e4765f16339b890474b39ccee3ad538 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Tue, 1 Oct 2024 12:20:08 +0200 Subject: [PATCH] more logs --- relayer/relays/beacon/config/config.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/relayer/relays/beacon/config/config.go b/relayer/relays/beacon/config/config.go index f0c9c86374..e0e5895366 100644 --- a/relayer/relays/beacon/config/config.go +++ b/relayer/relays/beacon/config/config.go @@ -3,6 +3,8 @@ package config import ( "errors" "fmt" + + log "github.com/sirupsen/logrus" ) type Config struct { @@ -90,14 +92,16 @@ func (b BeaconConfig) Validate() error { } func (p ParachainConfig) Validate() error { + log.Info("validating parachain settings") if p.Endpoint == "" { return errors.New("[endpoint] is not set") } if p.MaxWatchedExtrinsics == 0 { return errors.New("[maxWatchedExtrinsics] is not set") } + log.WithField("HeaderRedundancy", p.HeaderRedundancy).Info("p.HeaderRedundancy is") if p.HeaderRedundancy == 0 { - return errors.New("[HeaderRedundancy] is not set") + return errors.New("[headerRedundancy] is not set") } return nil }