From e3d82a21f5dbfd85ae0dfb40c74d286f4365815a Mon Sep 17 00:00:00 2001
From: Boyd Johnson <johnson.boyd@gmail.com>
Date: Thu, 23 Jun 2022 20:28:40 +0000
Subject: [PATCH] Update from deprecated test-env-log to test-log

---
 onnxruntime/Cargo.toml                   | 2 +-
 onnxruntime/src/environment.rs           | 2 +-
 onnxruntime/src/memory.rs                | 2 +-
 onnxruntime/src/tensor/ndarray_tensor.rs | 2 +-
 onnxruntime/src/tensor/ort_tensor.rs     | 2 +-
 onnxruntime/tests/integration_tests.rs   | 2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/onnxruntime/Cargo.toml b/onnxruntime/Cargo.toml
index 8dd12d00..73712b7c 100644
--- a/onnxruntime/Cargo.toml
+++ b/onnxruntime/Cargo.toml
@@ -31,7 +31,7 @@ ureq = { version = "2.1", optional = true }
 
 [dev-dependencies]
 image = "0.23"
-test-env-log = { version = "0.2", default-features = false, features = ["trace"] }
+test-log = { version = "0.2", default-features = false, features = ["trace"] }
 tracing-subscriber = "0.2"
 ureq = "2.1"
 
diff --git a/onnxruntime/src/environment.rs b/onnxruntime/src/environment.rs
index 088f65e9..0f31194b 100644
--- a/onnxruntime/src/environment.rs
+++ b/onnxruntime/src/environment.rs
@@ -243,7 +243,7 @@ impl EnvBuilder {
 mod tests {
     use super::*;
     use std::sync::{RwLock, RwLockWriteGuard};
-    use test_env_log::test;
+    use test_log::test;
 
     impl G_ENV {
         fn is_initialized(&self) -> bool {
diff --git a/onnxruntime/src/memory.rs b/onnxruntime/src/memory.rs
index 1c8fa42f..cf987322 100644
--- a/onnxruntime/src/memory.rs
+++ b/onnxruntime/src/memory.rs
@@ -52,7 +52,7 @@ impl Drop for MemoryInfo {
 #[cfg(test)]
 mod tests {
     use super::*;
-    use test_env_log::test;
+    use test_log::test;
 
     #[test]
     fn memory_info_constructor_destructor() {
diff --git a/onnxruntime/src/tensor/ndarray_tensor.rs b/onnxruntime/src/tensor/ndarray_tensor.rs
index 3fac6e95..400405d5 100644
--- a/onnxruntime/src/tensor/ndarray_tensor.rs
+++ b/onnxruntime/src/tensor/ndarray_tensor.rs
@@ -57,7 +57,7 @@ where
 mod tests {
     use super::*;
     use ndarray::{arr1, arr2, arr3};
-    use test_env_log::test;
+    use test_log::test;
 
     #[test]
     fn softmax_1d() {
diff --git a/onnxruntime/src/tensor/ort_tensor.rs b/onnxruntime/src/tensor/ort_tensor.rs
index 46bbbf89..66fc6372 100644
--- a/onnxruntime/src/tensor/ort_tensor.rs
+++ b/onnxruntime/src/tensor/ort_tensor.rs
@@ -199,7 +199,7 @@ mod tests {
     use crate::{AllocatorType, MemType};
     use ndarray::{arr0, arr1, arr2, arr3};
     use std::ptr;
-    use test_env_log::test;
+    use test_log::test;
 
     #[test]
     fn orttensor_from_array_0d_i32() {
diff --git a/onnxruntime/tests/integration_tests.rs b/onnxruntime/tests/integration_tests.rs
index 812d2aed..ea670c6f 100644
--- a/onnxruntime/tests/integration_tests.rs
+++ b/onnxruntime/tests/integration_tests.rs
@@ -13,7 +13,7 @@ mod download {
 
     use image::{imageops::FilterType, ImageBuffer, Luma, Pixel, Rgb};
     use ndarray::s;
-    use test_env_log::test;
+    use test_log::test;
 
     use onnxruntime::{
         download::vision::{DomainBasedImageClassification, ImageClassification},