diff options
author | Martin Braun <martin.braun@ettus.com> | 2020-01-23 12:25:56 -0800 |
---|---|---|
committer | atrnati <54334261+atrnati@users.noreply.github.com> | 2020-01-29 08:47:50 -0600 |
commit | 25b434ae858dd476e13738e0acaa9edeb019cee4 (patch) | |
tree | 4451a898aa16fc83ee7f9741d7c2243c1eaa3094 /host/lib/utils/log.cpp | |
parent | 4d1afc53be8bc74ce81c7b41d1ba552f2327f88b (diff) | |
download | uhd-25b434ae858dd476e13738e0acaa9edeb019cee4.tar.gz uhd-25b434ae858dd476e13738e0acaa9edeb019cee4.tar.bz2 uhd-25b434ae858dd476e13738e0acaa9edeb019cee4.zip |
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.
Diffstat (limited to 'host/lib/utils/log.cpp')
-rw-r--r-- | host/lib/utils/log.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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; } } |