Use the event loop name instead of thread name for AOS_LOG
This kills 2 birds with 1 stone.
1) A simulated event loop should print out the name of each event
loop, not the program name.
2) prctl(PR_GET_NAME, thread_name_array) can require higher privileges
sometimes, and is un-necesary for simulations. See 1)
Change-Id: I48731b1cabe34ec66a97f27ee720ba3081da4e94
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/aos/testing/test_logging.cc b/aos/testing/test_logging.cc
index d0cea26..d2466c9 100644
--- a/aos/testing/test_logging.cc
+++ b/aos/testing/test_logging.cc
@@ -23,6 +23,8 @@
return ::aos::monotonic_clock::now();
}
+ std::string_view MyName() override { return "Name"; }
+
// This class has to be a singleton so that everybody can get access to the
// same instance to read out the messages etc.
static std::shared_ptr<TestLogImplementation> GetInstance() {