tweak log levels
This commit is contained in:
parent
93a84df68b
commit
c5eaa693ea
|
@ -46,15 +46,7 @@ const MAX_QUIC_CONNECTIONS_PER_PEER: usize = 2; // prod=8
|
|||
|
||||
#[test]
|
||||
pub fn wireup_and_send_txs_via_channel() {
|
||||
let env_filter = if SAMPLE_TX_COUNT < 100 {
|
||||
"trace,rustls=info"
|
||||
} else {
|
||||
"trace,rustls=info,quinn_proto=debug"
|
||||
};
|
||||
tracing_subscriber::fmt::fmt()
|
||||
// .with_max_level(LevelFilter::DEBUG)
|
||||
.with_env_filter(env_filter)
|
||||
.init();
|
||||
configure_logging();
|
||||
|
||||
// solana quic streamer - see quic.rs -> rt()
|
||||
const NUM_QUIC_STREAMER_WORKER_THREADS: usize = 1;
|
||||
|
@ -119,8 +111,8 @@ pub fn wireup_and_send_txs_via_channel() {
|
|||
let mut packet_count2 = 0;
|
||||
const WARMUP_TX_COUNT: u32 = SAMPLE_TX_COUNT / 2;
|
||||
while packet_count != SAMPLE_TX_COUNT {
|
||||
match inbound_packets_receiver.recv() {
|
||||
Ok(packet_batch) => {
|
||||
let packet_batch = inbound_packets_receiver.recv().expect("receive must succeed");
|
||||
|
||||
if packet_count == 0 {
|
||||
info!("time to first packet {}ms", time_to_first.elapsed().as_millis());
|
||||
}
|
||||
|
@ -145,12 +137,7 @@ pub fn wireup_and_send_txs_via_channel() {
|
|||
if packet_count == SAMPLE_TX_COUNT {
|
||||
break;
|
||||
}
|
||||
}
|
||||
Err(err) => {
|
||||
panic!("Error polling quic streaming channel: {}", err);
|
||||
}
|
||||
}
|
||||
}
|
||||
} // -- while not all packets received - by count
|
||||
|
||||
let total_duration = timer.elapsed();
|
||||
let half_duration = timer2.unwrap().elapsed();
|
||||
|
@ -175,6 +162,18 @@ pub fn wireup_and_send_txs_via_channel() {
|
|||
|
||||
}
|
||||
|
||||
fn configure_logging() {
|
||||
let env_filter = if SAMPLE_TX_COUNT < 100 {
|
||||
"trace,rustls=info,quinn_proto=debug"
|
||||
} else {
|
||||
"trace,quinn_proto=info,rustls=info,solana_streamer=debug"
|
||||
};
|
||||
tracing_subscriber::fmt::fmt()
|
||||
// .with_max_level(LevelFilter::DEBUG)
|
||||
.with_env_filter(env_filter)
|
||||
.init();
|
||||
}
|
||||
|
||||
const STAKE_CONNECTION: bool = true;
|
||||
|
||||
async fn start_literpc_client(streamer_listen_addrs: SocketAddr, literpc_validator_identity: Arc<Keypair>) -> anyhow::Result<()> {
|
||||
|
|
Loading…
Reference in New Issue