mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 19:41:05 +00:00
Print warning again if polling network is too long (#3984)
This commit is contained in:
committed by
Bastian Köcher
parent
8207b4fceb
commit
9de6dea4c3
@@ -459,7 +459,7 @@ fn build_network_future<
|
|||||||
let polling_dur = before_polling.elapsed();
|
let polling_dur = before_polling.elapsed();
|
||||||
log!(
|
log!(
|
||||||
target: "service",
|
target: "service",
|
||||||
if polling_dur >= Duration::from_millis(50) { Level::Debug } else { Level::Trace },
|
if polling_dur >= Duration::from_secs(1) { Level::Warn } else { Level::Trace },
|
||||||
"Polling the network future took {:?}",
|
"Polling the network future took {:?}",
|
||||||
polling_dur
|
polling_dur
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user