diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-09-03 09:36:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-03 10:36:28 +0200 |
commit | 1f51b5310f85ad28f2d00ce223c59ff0be9619d0 (patch) | |
tree | 2b8c53fd35cd602b2307a658259416c7fecfe0aa /tests | |
parent | 45c1737531be882947e2f62038c0b72fbac921e3 (diff) |
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
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/run_tests.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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() |