From 25b434ae858dd476e13738e0acaa9edeb019cee4 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Thu, 23 Jan 2020 12:25:56 -0800 Subject: log: Remove LOG statement from _get_log_level() _get_log_level() is an internal function that only gets called during setup, so the logger isn't ready yet. It thus now logs to stderr instead of the logger. --- host/lib/utils/log.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'host/lib') diff --git a/host/lib/utils/log.cpp b/host/lib/utils/log.cpp index df18ce97f..4b95c9b8a 100644 --- a/host/lib/utils/log.cpp +++ b/host/lib/utils/log.cpp @@ -411,8 +411,7 @@ private: if (log_level_num >= uhd::log::trace and log_level_num <= uhd::log::fatal) { return log_level_num; } else { - UHD_LOGGER_ERROR("LOG") - << "Failed to set log level to: " << log_level_str; + std::cerr << "[LOG] Failed to set log level to: " << log_level_str; return previous_level; } } -- cgit v1.2.3