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

View file

@ -164,6 +164,7 @@ struct SqlIncrementalCache {
impl SqlIncrementalCache {
pub fn new(db_file_path: &Path, state_hash: u64) -> Result<Self, AnyError> {
log::debug!("Loading incremental cache.");
let conn = Connection::open(db_file_path)?;
Self::from_connection(conn, state_hash, crate::version::deno())
}