summaryrefslogtreecommitdiff
path: root/cli/cache/node.rs
diff options
context:
space:
mode:
authorBartek Iwańczuk <biwanczuk@gmail.com>2023-03-21 23:38:18 +0100
committerGitHub <noreply@github.com>2023-03-21 22:38:18 +0000
commit7d9653d51fb0c4d3844f61e1214b6bddc50d2cef (patch)
tree34bcac6950559d621029a53dcbd9b0fc9d0c5423 /cli/cache/node.rs
parent0b4770fa7daf274ab01923fb09fd604aeb27e417 (diff)
Revert "fix(cli) Better error messages on corrupt databases that aren… (#18337)
…'t automatically re-created (#18330)" This reverts commit 2ef8269fdb395b0736153ff5fbb9696cbb976e42. Printing these messages by default (instead of requiring `-L debug` flag) caused various tests to start printing it and mismatch in output assertions.
Diffstat (limited to 'cli/cache/node.rs')
-rw-r--r--cli/cache/node.rs9
1 files changed, 2 insertions, 7 deletions
diff --git a/cli/cache/node.rs b/cli/cache/node.rs
index 2f1b1f55f..b19772229 100644
--- a/cli/cache/node.rs
+++ b/cli/cache/node.rs
@@ -106,16 +106,11 @@ impl NodeAnalysisCache {
) {
Ok(cache) => Some(cache),
Err(err) => {
- let file = self
- .db_file_path
- .as_ref()
- .map(|s| s.to_string_lossy().to_string())
- .unwrap_or_default();
- log::error!("Error creating node analysis cache, file '{file}' may be corrupt: {:#}", err);
// should never error here, but if it ever does don't fail
if cfg!(debug_assertions) {
- panic!("Error creating node analysis cache, file '{file}' may be corrupt: {err:#}");
+ panic!("Error creating node analysis cache: {err:#}");
} else {
+ log::debug!("Error creating node analysis cache: {:#}", err);
None
}
}