lighthouse/testing
Age Manning aa1ed787e9 Logging via the HTTP API (#4074)
This PR adds the ability to read the Lighthouse logs from the HTTP API for both the BN and the VC. 

This is done in such a way to as minimize any kind of performance hit by adding this feature.

The current design creates a tokio broadcast channel and mixes is into a form of slog drain that combines with our main global logger drain, only if the http api is enabled. 

The drain gets the logs, checks the log level and drops them if they are below INFO. If they are INFO or higher, it sends them via a broadcast channel only if there are users subscribed to the HTTP API channel. If not, it drops the logs. 

If there are more than one subscriber, the channel clones the log records and converts them to json in their independent HTTP API tasks. 

Co-authored-by: Michael Sproul <micsproul@gmail.com>
2023-05-22 05:57:08 +00:00
..
antithesis Bump Rust version (MSRV) (#4204) 2023-04-18 02:47:37 +00:00
ef_tests Fix attestation withdrawals root mismatch (#4249) 2023-05-09 10:48:15 +00:00
eth1_test_rig Replace ganache-cli with anvil (#3555) 2023-05-15 07:22:02 +00:00
execution_engine_integration Use efficient payload reconstruction for HTTP API (#4102) 2023-04-18 02:47:35 +00:00
node_test_rig Support for Ipv6 (#4046) 2023-03-14 01:13:34 +00:00
simulator Logging via the HTTP API (#4074) 2023-05-22 05:57:08 +00:00
state_transition_vectors Fix attestation withdrawals root mismatch (#4249) 2023-05-09 10:48:15 +00:00
test-test_logger Update to Rust 1.59 and 2021 edition (#3038) 2022-02-25 00:10:17 +00:00
web3signer_tests CI fix: move download web3signer binary out of build script (#4163) 2023-04-06 06:36:21 +00:00