summaryrefslogtreecommitdiff
path: root/cli/proc_state.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-11-23 13:34:44 -0500
committerGitHub <noreply@github.com>2022-11-23 13:34:44 -0500
commitbeaa0d88679c96e643f411d04a4ce9f6d159eaeb (patch)
tree3eae69a47f984cd8c19860758feb969a74b26bb7 /cli/proc_state.rs
parentcbf4fa143fe0e21647ca9518ec93c349199da8f4 (diff)
chore: more debug logging and avoid allocating strings in ts logging when not debug (#16689)
Diffstat (limited to 'cli/proc_state.rs')
-rw-r--r--cli/proc_state.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/cli/proc_state.rs b/cli/proc_state.rs
index a193adc53..7dac38cad 100644
--- a/cli/proc_state.rs
+++ b/cli/proc_state.rs
@@ -292,6 +292,7 @@ impl ProcState {
dynamic_permissions: Permissions,
reload_on_watch: bool,
) -> Result<(), AnyError> {
+ log::debug!("Preparing module load.");
let _pb_clear_guard = self.progress_bar.clear_guard();
let has_root_npm_specifier = roots.iter().any(|r| {
@@ -375,6 +376,7 @@ impl ProcState {
};
let analyzer = self.parsed_source_cache.as_analyzer();
+ log::debug!("Creating module graph.");
let graph = create_graph(
roots.clone(),
&mut loader,
@@ -423,6 +425,7 @@ impl ProcState {
// type check if necessary
if self.options.type_check_mode() != TypeCheckMode::None {
+ log::debug!("Type checking.");
let maybe_config_specifier = self.options.maybe_config_file_specifier();
let roots = roots.clone();
let options = check::CheckOptions {
@@ -464,6 +467,8 @@ impl ProcState {
g.write()?;
}
+ log::debug!("Prepared module load.");
+
Ok(())
}