silence some parachain warnings (#2859)

* silence some parachain warnings

* that was actually a bug that Rob is fixing
This commit is contained in:
Andronik Ordian
2021-04-09 00:25:46 +02:00
committed by GitHub
parent 59b4d6511f
commit 78a46da384
2 changed files with 16 additions and 8 deletions
@@ -212,7 +212,7 @@ async fn load_all_sessions(
let session_info = match rx.await {
Ok(Ok(Some(s))) => s,
Ok(Ok(None)) => {
tracing::warn!(
tracing::debug!(
target: LOG_TARGET,
"Session {} is missing from session-info state of block {}",
i,
@@ -266,14 +266,14 @@ async fn cache_session_info_for_head(
let window_start = session_index.saturating_sub(APPROVAL_SESSIONS - 1);
tracing::info!(
tracing::debug!(
target: LOG_TARGET, "Loading approval window from session {}..={}",
window_start, session_index,
);
match load_all_sessions(ctx, block_hash, window_start, session_index).await {
Err(SessionsUnavailable) => {
tracing::warn!(
tracing::debug!(
target: LOG_TARGET,
"Could not load sessions {}..={} from block {:?} in session {}",
window_start, session_index, block_hash, session_index,
@@ -599,7 +599,7 @@ pub(crate) async fn handle_new_head(
&header,
).await
{
tracing::warn!(
tracing::debug!(
target: LOG_TARGET,
"Could not cache session info when processing head {:?}",
head,