Skip to content

Commit

Permalink
- restrict msglevel filtering only to the notify display, not the con…
Browse files Browse the repository at this point in the history
…sole, log and debug output.
  • Loading branch information
coelckers committed Sep 14, 2023
1 parent 096b9cd commit eb93c76
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/common/console/c_console.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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))
Expand Down

0 comments on commit eb93c76

Please sign in to comment.