Simplify aos/logging code
There are extra files and targets that we don't really need. Combine
them to simplify things.
Change-Id: Ife2901dd344df389f5e6f347d50f565627f47366
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/aos/logging/context.cc b/aos/logging/context.cc
index 0ffe01c..d1a6b03 100644
--- a/aos/logging/context.cc
+++ b/aos/logging/context.cc
@@ -20,7 +20,6 @@
#include "glog/logging.h"
-#include "aos/die.h"
#include "aos/logging/implementations.h"
namespace aos {
@@ -86,9 +85,8 @@
std::string_view Context::MyName() {
if (name_size == std::numeric_limits<size_t>::max()) {
::std::string my_name = GetMyName();
- if (my_name.size() + 1 > sizeof(Context::name)) {
- Die("logging: process/thread name '%s' is too long\n", my_name.c_str());
- }
+ CHECK_LE(my_name.size() + 1, sizeof(Context::name))
+ << ": process/thread name '" << my_name << "' is too long";
strcpy(name, my_name.c_str());
name_size = my_name.size();
}