aa1ed787e9
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> |
||
---|---|---|
.. | ||
block_root.rs | ||
change_genesis_time.rs | ||
check_deposit_data.rs | ||
create_payload_header.rs | ||
deploy_deposit_contract.rs | ||
eth1_genesis.rs | ||
generate_bootnode_enr.rs | ||
indexed_attestations.rs | ||
insecure_validators.rs | ||
interop_genesis.rs | ||
main.rs | ||
mnemonic_validators.rs | ||
new_testnet.rs | ||
parse_ssz.rs | ||
replace_state_pubkeys.rs | ||
skip_slots.rs | ||
transition_blocks.rs |