[glass] Fix option for debug-level NT logging (#5049)

This commit is contained in:
Peter Johnson
2023-02-03 22:03:45 -08:00
committed by GitHub
parent b7535252c2
commit fe5d226a19

View File

@@ -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));