Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Print warning again if polling network is too long #3984

Merged
merged 1 commit into from
Nov 1, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/service/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
Expand Down