lighthouse-pulse/beacon_node/eth1/src
Pawan Dhananjay 99737c551a Improve eth1 fallback logging (#2490)
## Issue Addressed

Resolves #2487 

## Proposed Changes

Logs a message once in every invocation of `Eth1Service::update` method if the primary endpoint is unavailable for some reason. 

e.g.
```log
Aug 03 00:09:53.517 WARN Error connecting to eth1 node endpoint  action: trying fallbacks, endpoint: http://localhost:8545/, service: eth1_rpc
Aug 03 00:09:56.959 INFO Fetched data from fallback              fallback_number: 1, service: eth1_rpc
```

The main aim of this PR is to have an accompanying message to the "action: trying fallbacks" error message that is returned when checking the endpoint for liveness. This is mainly to indicate to the user that the fallback was live and reachable. 

## Additional info
This PR is not meant to be a catch all for all cases where the primary endpoint failed. For instance, this won't log anything if the primary node was working fine during endpoint liveness checking and failed during deposit/block fetching. This is done intentionally to reduce number of logs while initial deposit/block sync and to avoid more complicated logic.
2021-08-30 00:51:26 +00:00
..
block_cache.rs Return eth1-related data via the API (#1797) 2020-11-02 00:37:30 +00:00
deposit_cache.rs Rust 1.54.0 lints (#2483) 2021-07-30 01:11:47 +00:00
deposit_log.rs Fix new clippy lints (#2036) 2020-12-03 01:10:26 +00:00
http.rs Rust 1.54.0 lints (#2483) 2021-07-30 01:11:47 +00:00
inner.rs Rust 1.54.0 lints (#2483) 2021-07-30 01:11:47 +00:00
lib.rs Fallback nodes for eth1 access (#1918) 2020-11-27 08:37:44 +00:00
metrics.rs Monitoring service api (#2251) 2021-05-26 05:58:41 +00:00
service.rs Improve eth1 fallback logging (#2490) 2021-08-30 00:51:26 +00:00