From fe5d226a193a7b586c1e2ed30bb0919c460e4e10 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Fri, 3 Feb 2023 22:03:45 -0800 Subject: [PATCH] [glass] Fix option for debug-level NT logging (#5049) --- glass/src/app/native/cpp/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glass/src/app/native/cpp/main.cpp b/glass/src/app/native/cpp/main.cpp index b257b683e1..609e0555d8 100644 --- a/glass/src/app/native/cpp/main.cpp +++ b/glass/src/app/native/cpp/main.cpp @@ -98,8 +98,8 @@ static void NtInitialize() { level = "ERROR: "; } else if (msg->level >= NT_LOG_WARNING) { level = "WARNING: "; - } else if (!gNetworkTablesDebugLog) { - return; + } else if (msg->level < NT_LOG_INFO && !gNetworkTablesDebugLog) { + continue; } gNetworkTablesLog.Append(fmt::format( "{}{} ({}:{})\n", level, msg->message, msg->filename, msg->line));