summaryrefslogtreecommitdiff
path: root/cli/tools/jupyter/mod.rs
diff options
context:
space:
mode:
authorNathan Whitaker <17734409+nathanwhit@users.noreply.github.com>2024-06-10 15:36:39 -0700
committerGitHub <noreply@github.com>2024-06-10 22:36:39 +0000
commit7996c0df92f53585cf8abb8844793c1e3aaea078 (patch)
tree38203802995c330ac8983a189fbc34688faea1c5 /cli/tools/jupyter/mod.rs
parente3b2ee183bc7497ec0432bc764678f5eda6495a7 (diff)
fix(jupyter): Avoid panicking when `DEBUG` env var is set (#24168)
Fixes #22050. It seems very unlikely that a user would be intending to enable deno's internal debug logs by setting the DEBUG env var. If they really want that, they can set `RUST_LOG=debug` instead.
Diffstat (limited to 'cli/tools/jupyter/mod.rs')
-rw-r--r--cli/tools/jupyter/mod.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/cli/tools/jupyter/mod.rs b/cli/tools/jupyter/mod.rs
index 3b0892843..0dbcfe9ef 100644
--- a/cli/tools/jupyter/mod.rs
+++ b/cli/tools/jupyter/mod.rs
@@ -7,7 +7,6 @@ use crate::tools::repl;
use crate::tools::test::create_single_test_event_channel;
use crate::tools::test::reporters::PrettyTestReporter;
use crate::tools::test::TestEventWorkerSender;
-use crate::util::logger;
use crate::CliFactory;
use deno_core::anyhow::Context;
use deno_core::error::generic_error;
@@ -52,11 +51,6 @@ pub async fn kernel(
let connection_filepath = jupyter_flags.conn_file.unwrap();
- // This env var might be set by notebook
- if std::env::var("DEBUG").is_ok() {
- logger::init(Some(log::Level::Debug));
- }
-
let factory = CliFactory::from_flags(flags)?;
let cli_options = factory.cli_options();
let main_module =