summaryrefslogtreecommitdiff
path: root/client/Logger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'client/Logger.cpp')
-rw-r--r--client/Logger.cpp6
1 files changed, 5 insertions, 1 deletions
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;
}