From eb93c764ee8ab1c0179832814c76be8b6271726e Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 15 Sep 2023 00:40:41 +0200 Subject: [PATCH] - restrict msglevel filtering only to the notify display, not the console, log and debug output. --- src/common/console/c_console.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/common/console/c_console.cpp b/src/common/console/c_console.cpp index b6377f1f1..c909592a5 100644 --- a/src/common/console/c_console.cpp +++ b/src/common/console/c_console.cpp @@ -417,7 +417,7 @@ int PrintString (int iprintlevel, const char *outline) if (!conbuffer) return 0; // when called too early int printlevel = iprintlevel & PRINT_TYPES; - if (printlevel < msglevel || *outline == '\0') + if (*outline == '\0') { return 0; } @@ -434,7 +434,10 @@ int PrintString (int iprintlevel, const char *outline) conbuffer->AddText(printlevel, outline); if (vidactive && screen && !(iprintlevel & PRINT_NONOTIFY) && NotifyStrings) { - NotifyStrings->AddString(iprintlevel, outline); + if (printlevel >= msglevel) + { + NotifyStrings->AddString(iprintlevel, outline); + } } } if (Logfile != nullptr && !(iprintlevel & PRINT_NOLOG))