chore: more debug logging and avoid allocating strings in ts logging when not debug (#16689)

This commit is contained in:
David Sherret 2022-11-23 13:34:44 -05:00 committed by GitHub
parent cbf4fa143f
commit beaa0d8867
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 55 additions and 20 deletions

1
cli/cache/check.rs vendored
View file

@ -17,6 +17,7 @@ pub struct TypeCheckCache(Option<Connection>);
impl TypeCheckCache {
pub fn new(db_file_path: &Path) -> Self {
log::debug!("Loading type check cache.");
match Self::try_new(db_file_path) {
Ok(cache) => cache,
Err(err) => {