mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix missing warningstream (or similar problem) (#7034)
Use the --color command line parameter instead of a setting for coloured logs This fixes the missing warningstream bug, g_settings->get mustn't be used there. Also, the decision about en- or disabling log colours fits better to the command line parameters than minetest settings.
This commit is contained in:
parent
929792e15e
commit
540e07e3ef
5 changed files with 38 additions and 18 deletions
|
@ -251,6 +251,8 @@ const std::string Logger::getLevelLabel(LogLevel lev)
|
|||
return names[lev];
|
||||
}
|
||||
|
||||
LogColor Logger::color_mode = LOG_COLOR_AUTO;
|
||||
|
||||
const std::string Logger::getThreadName()
|
||||
{
|
||||
std::map<std::thread::id, std::string>::const_iterator it;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue