Add logging for rust

Change-Id: I0537c47817f050935c4319ccb97ce4efed866f7a
Signed-off-by: James Kuszmaul <james.kuszmaul@bluerivertech.com>
diff --git a/aos/test_init.rs b/aos/test_init.rs
index a8380e2..d17d2ef 100644
--- a/aos/test_init.rs
+++ b/aos/test_init.rs
@@ -1,4 +1,4 @@
-use aos_init::init;
+use std::sync::Once;
 
 autocxx::include_cpp! (
 #include "aos/testing/tmpdir.h"
@@ -15,7 +15,11 @@
 ///
 /// Panics if non-test initialization has already been performed.
 pub fn test_init() {
-    init();
-    ffi::aos::testing::SetTestShmBase();
-    // TODO(Brian): Do we want any of the other stuff that `:gtest_main` has?
+    static ONCE: Once = Once::new();
+    ONCE.call_once(|| {
+        aos_init::internal::init();
+        ffi::aos::testing::SetTestShmBase();
+        env_logger::builder().is_test(true).init();
+        // TODO(Brian): Do we want any of the other stuff that `:gtest_main` has?
+    });
 }