From b8f882dba47c0e22fb27f64b9e7d2b47f43beb68 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Mon, 7 Apr 2014 15:11:04 -0400 Subject: [PATCH] dont reset coloring when it wasn't set in the first place, partially fixes Windows woes. See #979 --- Util/SimpleLogger.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Util/SimpleLogger.h b/Util/SimpleLogger.h index a421b1e1c..144ca73b7 100644 --- a/Util/SimpleLogger.h +++ b/Util/SimpleLogger.h @@ -36,7 +36,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include enum LogLevel { logINFO, logWARNING, logDEBUG }; -static boost::mutex logger_mutex; +static boost::mutex logger_mutex; const char COL_RESET[] = "\x1b[0m"; const char RED[] = "\x1b[31m"; const char GREEN[] = "\x1b[32m"; @@ -79,7 +79,7 @@ public: boost::mutex::scoped_lock lock(logger_mutex); level = l; os << "["; - switch(level) { + switch(level) { case logINFO: os << "info"; break;