From 7996c0df92f53585cf8abb8844793c1e3aaea078 Mon Sep 17 00:00:00 2001 From: Nathan Whitaker <17734409+nathanwhit@users.noreply.github.com> Date: Mon, 10 Jun 2024 15:36:39 -0700 Subject: 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. --- cli/tools/jupyter/mod.rs | 6 ------ 1 file changed, 6 deletions(-) (limited to 'cli') 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 = -- cgit v1.2.3