formats logs in bootstrap (#28291)
This commit is contained in:
parent
3781c0668f
commit
00a18a962e
|
@ -1204,19 +1204,28 @@ fn download_snapshot(
|
||||||
&& known_validators.len() == 1
|
&& known_validators.len() == 1
|
||||||
&& bootstrap_config.only_known_rpc
|
&& bootstrap_config.only_known_rpc
|
||||||
{
|
{
|
||||||
warn!("The snapshot download is too slow, throughput: {} < min speed {} bytes/sec, but will NOT abort \
|
warn!(
|
||||||
and try a different node as it is the only known validator and the --only-known-rpc flag \
|
"The snapshot download is too slow, throughput: {} < min speed {} \
|
||||||
is set. \
|
bytes/sec, but will NOT abort and try a different node as it is the \
|
||||||
|
only known validator and the --only-known-rpc flag is set. \
|
||||||
Abort count: {}, Progress detail: {:?}",
|
Abort count: {}, Progress detail: {:?}",
|
||||||
download_progress.last_throughput, minimal_snapshot_download_speed,
|
download_progress.last_throughput,
|
||||||
download_abort_count, download_progress);
|
minimal_snapshot_download_speed,
|
||||||
|
download_abort_count,
|
||||||
|
download_progress,
|
||||||
|
);
|
||||||
return true; // Do not abort download from the one-and-only known validator
|
return true; // Do not abort download from the one-and-only known validator
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
warn!("The snapshot download is too slow, throughput: {} < min speed {} bytes/sec, will abort \
|
warn!(
|
||||||
and try a different node. Abort count: {}, Progress detail: {:?}",
|
"The snapshot download is too slow, throughput: {} < min speed {} \
|
||||||
download_progress.last_throughput, minimal_snapshot_download_speed,
|
bytes/sec, will abort and try a different node. \
|
||||||
download_abort_count, download_progress);
|
Abort count: {}, Progress detail: {:?}",
|
||||||
|
download_progress.last_throughput,
|
||||||
|
minimal_snapshot_download_speed,
|
||||||
|
download_abort_count,
|
||||||
|
download_progress,
|
||||||
|
);
|
||||||
*download_abort_count += 1;
|
*download_abort_count += 1;
|
||||||
false
|
false
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue