lighthouse/beacon_node
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
..
beacon_chain Metrics and DEBG log for late gossip blocks (#2533) 2021-08-23 00:59:14 +00:00
client Upgrade dependencies (#2513) 2021-08-17 01:00:24 +00:00
eth1 Improve eth1 fallback logging (#2490) 2021-08-30 00:51:26 +00:00
eth2_libp2p Expand gossip duplicate cache time (#2542) 2021-08-26 23:25:50 +00:00
genesis Upgrade dependencies (#2513) 2021-08-17 01:00:24 +00:00
http_api Fork schedule api (#2525) 2021-08-24 01:36:27 +00:00
http_metrics Upgrade dependencies (#2513) 2021-08-17 01:00:24 +00:00
network Remove penality for duplicate attestation from same validator (#2540) 2021-08-26 08:00:50 +00:00
operation_pool Rust 1.54.0 lints (#2483) 2021-07-30 01:11:47 +00:00
src Packet filter cli option (#2523) 2021-08-26 00:29:39 +00:00
store Rust 1.54.0 lints (#2483) 2021-07-30 01:11:47 +00:00
tests Altair consensus changes and refactors (#2279) 2021-07-09 06:15:32 +00:00
timer Upgrade dependencies (#2513) 2021-08-17 01:00:24 +00:00
websocket_server Server sent events (#1920) 2020-12-04 00:18:58 +00:00
Cargo.toml v1.5.1 (#2544) 2021-08-27 01:58:19 +00:00