diff options
author | Chuck Miller <shadowmil@gmail.com> | 2010-08-15 20:56:08 -0400 |
---|---|---|
committer | Chuck Miller <shadowmil@gmail.com> | 2010-08-15 22:44:13 -0400 |
commit | 560877d89847b25b201580e083119f0b23ff75c1 (patch) | |
tree | cb50dd12b0b884f7c7dea74102d321d63bb1d37f /src/log.cpp | |
parent | 8f573b6c425dc82be42ad80eae565b0641a90a3b (diff) | |
download | mana-560877d89847b25b201580e083119f0b23ff75c1.tar.gz mana-560877d89847b25b201580e083119f0b23ff75c1.tar.bz2 mana-560877d89847b25b201580e083119f0b23ff75c1.tar.xz mana-560877d89847b25b201580e083119f0b23ff75c1.zip |
Remove the logToChat option
This is a very old legacy option. Today its not very
useful because the logger had become quite verbose that
using it during run-time is not helpful.
Reviewed-By: Jared Adams
Reviewed-By: Freeyorp
Diffstat (limited to 'src/log.cpp')
-rw-r--r-- | src/log.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/log.cpp b/src/log.cpp index 435b2da0..0da9a272 100644 --- a/src/log.cpp +++ b/src/log.cpp @@ -22,9 +22,10 @@ #include <iostream> #include <sstream> -#include "log.h" +#include <stdio.h> +#include <stdarg.h> -#include "gui/widgets/chattab.h" +#include "log.h" #ifdef WIN32 #include <windows.h> @@ -37,8 +38,7 @@ #include <sys/time.h> Logger::Logger(): - mLogToStandardOut(true), - mChatWindow(NULL) + mLogToStandardOut(true) { } @@ -101,11 +101,6 @@ void Logger::log(const char *log_text, ...) std::cout << timeStr.str() << buf << std::endl; } - if (mChatWindow) - { - localChatTab->chatLog(buf, BY_LOGGER); - } - // Delete temporary buffer delete[] buf; } |