From 1f51b5310f85ad28f2d00ce223c59ff0be9619d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 3 Sep 2024 09:36:28 +0100 Subject: feat: support DENO_LOG env var instead of RUST_LOG (#25356) Instead of `RUST_LOG` env var, we now support `DENO_LOG` env var. This is done to be able to set a setting specific to `deno` that wouldn't impact other binaries written in Rust. Ref https://github.com/denoland/deno/issues/10558#issuecomment-2324300211 --- tests/integration/run_tests.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/integration/run_tests.rs b/tests/integration/run_tests.rs index efa2e6c85..360ff4d77 100644 --- a/tests/integration/run_tests.rs +++ b/tests/integration/run_tests.rs @@ -2499,8 +2499,8 @@ fn should_not_panic_on_undefined_deno_dir_and_home_environment_variables() { } #[test] -fn rust_log() { - // Without RUST_LOG the stderr is empty. +fn deno_log() { + // Without DENO_LOG the stderr is empty. let output = util::deno_cmd() .current_dir(util::testdata_path()) .arg("run") @@ -2513,12 +2513,12 @@ fn rust_log() { assert!(output.status.success()); assert!(output.stderr.is_empty()); - // With RUST_LOG the stderr is not empty. + // With DENO_LOG the stderr is not empty. let output = util::deno_cmd() .current_dir(util::testdata_path()) .arg("run") .arg("run/001_hello.js") - .env("RUST_LOG", "debug") + .env("DENO_LOG", "debug") .stderr_piped() .spawn() .unwrap() -- cgit v1.2.3