diff options
author | you <ovvv@web.de> | 2018-03-04 17:34:36 +0100 |
---|---|---|
committer | SmallJoker <SmallJoker@users.noreply.github.com> | 2018-03-04 17:34:36 +0100 |
commit | 540e07e3ef07de760100c2948dc3a756e48b1c72 (patch) | |
tree | 80faec4d957688f1f83c5285386c2d413de3413d /src/log.cpp | |
parent | 929792e15ea50943e7fd23925c3d1d431dfd8a02 (diff) | |
download | minetest-540e07e3ef07de760100c2948dc3a756e48b1c72.tar.gz minetest-540e07e3ef07de760100c2948dc3a756e48b1c72.tar.bz2 minetest-540e07e3ef07de760100c2948dc3a756e48b1c72.zip |
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.
Diffstat (limited to 'src/log.cpp')
-rw-r--r-- | src/log.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/log.cpp b/src/log.cpp index 3e9229e38..c84a847a5 100644 --- a/src/log.cpp +++ b/src/log.cpp @@ -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; |