From 66ea0033ad5aa982db0ff3168a0ef975bc9b9e67 Mon Sep 17 00:00:00 2001 From: leonz789 Date: Fri, 6 Sep 2024 13:56:53 +0800 Subject: [PATCH] logs --- cmd/feeder_tool.go | 1 + fetcher/chainlink/chainlink.go | 2 +- fetcher/chainlink/oracle_env_chainlink.yaml | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/feeder_tool.go b/cmd/feeder_tool.go index 5a0662b..a79c5fe 100644 --- a/cmd/feeder_tool.go +++ b/cmd/feeder_tool.go @@ -140,6 +140,7 @@ func reloadConfigToFetchNewTokens(remainningFeeders map[string]*feederInfo, newF for length > 0 { conf := feedertypes.ReadConfig(feedertypes.ConfigFile) for tokenRemainning, fInfo := range remainningFeeders { + fmt.Printf("loading config for for token %s \r\n", fInfo.params.tokenName) for _, token := range conf.Tokens { if strings.EqualFold(token, tokenRemainning) { delete(remainningFeeders, tokenRemainning) diff --git a/fetcher/chainlink/chainlink.go b/fetcher/chainlink/chainlink.go index d98e595..f90d2dd 100644 --- a/fetcher/chainlink/chainlink.go +++ b/fetcher/chainlink/chainlink.go @@ -115,7 +115,7 @@ func Fetch(token string) (*types.PriceInfo, error) { time.Sleep(10 * time.Second) } }() - log.Printf("token %s not found\n", token) + log.Printf("source_chainlink: token %s not found\n", token) return nil, errors.New("token not found") } diff --git a/fetcher/chainlink/oracle_env_chainlink.yaml b/fetcher/chainlink/oracle_env_chainlink.yaml index feae1a1..75d10e2 100644 --- a/fetcher/chainlink/oracle_env_chainlink.yaml +++ b/fetcher/chainlink/oracle_env_chainlink.yaml @@ -7,4 +7,3 @@ tokens: AMPLUSDT: 0xe20CA8D7546932360e37E9D72c1a47334af57706_mainnet WSTETHUSDT: 0xaaabb530434B0EeAAc9A42E25dbC6A22D7bE218E_sepolia STETHUSDT: 0xCfE54B5cD566aB89272946F602D76Ea879CAb4a8_mainnet - ETHHUSDT: 0xCfE54B5cD566aB89272946F602D76Ea879CAb4a8_mainnet