summaryrefslogtreecommitdiff
path: root/cli/factory.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-05-30 11:34:50 -0400
committerGitHub <noreply@github.com>2023-05-30 15:34:50 +0000
commit3b69d238cdedc7f47515ba74f2366724679c5c7d (patch)
tree016643f2551b53270f7af35a69e457ba74f91173 /cli/factory.rs
parentacc6cdc0b1c0fae5e0fba3b0110f96119c2139f7 (diff)
feat(runtime): add `WorkerLogLevel` (#19316)
This is not really used yet, but provides some infrastructure for doing more fine grained logging in JS. I will add warn messages in a future PR.
Diffstat (limited to 'cli/factory.rs')
-rw-r--r--cli/factory.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/cli/factory.rs b/cli/factory.rs
index 8e20e5514..17d141be1 100644
--- a/cli/factory.rs
+++ b/cli/factory.rs
@@ -678,11 +678,7 @@ impl CliFactory {
) -> Result<CliMainWorkerOptions, AnyError> {
Ok(CliMainWorkerOptions {
argv: self.options.argv().clone(),
- debug: self
- .options
- .log_level()
- .map(|l| l == log::Level::Debug)
- .unwrap_or(false),
+ log_level: self.options.log_level().unwrap_or(log::Level::Info).into(),
coverage_dir: self.options.coverage_dir(),
enable_testing_features: self.options.enable_testing_features(),
has_node_modules_dir: self.options.has_node_modules_dir(),