diff options
author | Bartek Iwańczuk <biwanczuk@gmail.com> | 2023-03-21 23:38:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-21 22:38:18 +0000 |
commit | 7d9653d51fb0c4d3844f61e1214b6bddc50d2cef (patch) | |
tree | 34bcac6950559d621029a53dcbd9b0fc9d0c5423 /cli/cache/parsed_source.rs | |
parent | 0b4770fa7daf274ab01923fb09fd604aeb27e417 (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/parsed_source.rs')
-rw-r--r-- | cli/cache/parsed_source.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/cli/cache/parsed_source.rs b/cli/cache/parsed_source.rs index 461ac6dce..b6a80e82e 100644 --- a/cli/cache/parsed_source.rs +++ b/cli/cache/parsed_source.rs @@ -121,12 +121,7 @@ impl ParsedSourceCache { ) { Ok(analyzer) => Box::new(analyzer), Err(err) => { - let file = self - .db_cache_path - .as_ref() - .map(|s| s.to_string_lossy().to_string()) - .unwrap_or_default(); - log::error!("Could not create cached module analyzer, cache file '{file}' may be corrupt: {:#}", err); + log::debug!("Could not create cached module analyzer. {:#}", err); // fallback to not caching if it can't be created Box::new(deno_graph::CapturingModuleAnalyzer::new( None, |