Skip to content

Commit 85e41f7

Browse files
committed
Fix: update error messages when looking up staging_blocks version
1 parent 908c40b commit 85e41f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stackslib/src/chainstate/nakamoto/staging_blocks.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ impl StacksChainState {
675675
let version: Option<i64> = match query_row(&conn, qry, args) {
676676
Ok(x) => x,
677677
Err(e) => {
678-
debug!("Failed to get Nakamoto staging blocks DB version: {:?}", &e);
678+
error!("Failed to get Nakamoto staging blocks DB version: {:?}", &e);
679679
return Err(ChainstateError::DBError(DBError::Corruption));
680680
}
681681
};
@@ -687,7 +687,7 @@ impl StacksChainState {
687687
Ok(ver)
688688
}
689689
None => {
690-
debug!("No version present in Nakamoto staging blocks DB; defaulting to 1");
690+
error!("No version present in Nakamoto staging blocks `db_version` table");
691691
Err(ChainstateError::DBError(DBError::Corruption))
692692
}
693693
}

0 commit comments

Comments
 (0)