Print warning again if polling network is too long (#3984)

This commit is contained in:
Pierre Krieger
2019-11-01 10:25:35 +01:00
committed by Bastian Köcher
parent 8207b4fceb
commit 9de6dea4c3
+1 -1
View File
@@ -459,7 +459,7 @@ fn build_network_future<
let polling_dur = before_polling.elapsed();
log!(
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_dur
);