Shared/Logs: Add support to .server set loglevel command after 003d67708b

Update the lowest log level when using ".server set loglevel" command.

(cherry picked from commit 43f74fd8cf)
This commit is contained in:
jackpoz
2015-03-03 21:11:08 +01:00
committed by Nayd
parent 064b6a4c84
commit 22d655451c

View File

@@ -324,6 +324,9 @@ bool Log::SetLogLevel(std::string const& name, const char* newLevelc, bool isLog
return false;
it->second.setLogLevel(newLevel);
if (newLevel != LOG_LEVEL_DISABLED && newLevel < lowestLogLevel)
lowestLogLevel = newLevel;
}
else
{