diff --git a/components/common/cpp/include/loguru.hpp b/components/common/cpp/include/loguru.hpp index 84b3ca68aca015e1fdf25f48781b0542424ff8a3..e43dc742e83d21405dacdafafa830a3251703998 100644 --- a/components/common/cpp/include/loguru.hpp +++ b/components/common/cpp/include/loguru.hpp @@ -536,7 +536,7 @@ namespace loguru class LOGURU_EXPORT LogScopeRAII { public: - LogScopeRAII() : _file(nullptr), _line(0), _indent_stderr(false), _start_time_ns(0), _name({0}) {} // No logging + LogScopeRAII() : _file(nullptr), _line(0), _indent_stderr(false), _start_time_ns(0), _name() {} // No logging LogScopeRAII(Verbosity verbosity, const char* file, unsigned line, LOGURU_FORMAT_STRING_TYPE format, ...) LOGURU_PRINTF_LIKE(5, 6); ~LogScopeRAII(); diff --git a/components/net/cpp/src/universe.cpp b/components/net/cpp/src/universe.cpp index 85733459c1ee0d24b2c45edbc639e291bf54e841..28a6b00565ca2f0bffd47814a6417c4a33138f76 100644 --- a/components/net/cpp/src/universe.cpp +++ b/components/net/cpp/src/universe.cpp @@ -258,7 +258,8 @@ void Universe::_run() { if (selres < 0) { switch (errno) { case 9 : continue; // Bad file descriptor = socket closed - default : std::cout << "Unknown select error: " << strerror(errno) << std::endl; + case 4 : continue; // Interrupted system call ... no problem + default : LOG(WARNING) << "Unhandled select error: " << strerror(errno) << "(" << errno << ")"; } continue; } else if (selres == 0) {