mirror of
https://github.com/denoland/deno.git
synced 2024-11-24 15:19:26 -05:00
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.
This commit is contained in:
parent
e3b2ee183b
commit
7996c0df92
1 changed files with 0 additions and 6 deletions
|
@ -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 =
|
||||
|
|
Loading…
Reference in a new issue