From ec80c67bcfec64177910f39d31c4b20974629096 Mon Sep 17 00:00:00 2001 From: Alex Borisov Date: Sun, 25 Mar 2012 22:16:30 +0300 Subject: Three color speed values --- client/Logger.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'client/Logger.cpp') diff --git a/client/Logger.cpp b/client/Logger.cpp index 63c4d8f..e0e769f 100644 --- a/client/Logger.cpp +++ b/client/Logger.cpp @@ -15,11 +15,13 @@ FILE* Logger::logFile = NULL; void Logger::InitLogFile() { + /* if (logFile == NULL) { logFile = fopen("client.log", "a"); setbuf(logFile, NULL); } + */ } void Logger::Trace(string msg, ...) @@ -109,10 +111,12 @@ void Logger::Log(LogLevelType logLevel, string msg, va_list args) sprintf(newfmt, "[%s] %-6s: %s", time_str, log_level_str.c_str(), msg.c_str()); vsprintf(logstr, newfmt, args); fprintf(stderr, logstr); - if (logFile != NULL) + /* + if (logFile != NULL) { fprintf(logFile, logstr); } + */ delete [] newfmt; } -- cgit v1.2.3