summaryrefslogtreecommitdiff
path: root/client/Logger.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2012-03-26 06:04:07 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2012-03-26 06:04:07 +0300
commit5e7966a5be76280e1d21c00de9c3bcec19f03f5e (patch)
treed0dc32de5d2f8f4350e7eb4f2ebf421215a02649 /client/Logger.cpp
parent377af8b15b18e606e1a714c2688d6fc07dccf59b (diff)
parentec80c67bcfec64177910f39d31c4b20974629096 (diff)
Merge branch 'master' of ssh://sss.chaoslab.ru//home/private_git/proxy_ui
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;
}