* Fixed file open/close of chatLogfile.

--HG--
branch : trunk
This commit is contained in:
XTZGZoReX
2009-03-27 16:52:27 +01:00
parent 1b96e085e6
commit 6f1195d9a8
+5 -1
View File
@@ -31,7 +31,7 @@ INSTANTIATE_SINGLETON_1( Log );
Log::Log() :
raLogfile(NULL), logfile(NULL), gmLogfile(NULL), charLogfile(NULL),
dberLogfile(NULL), m_gmlog_per_account(false), m_colored(false)
dberLogfile(NULL), chatLogfile(NULL), m_gmlog_per_account(false), m_colored(false)
{
Initialize();
}
@@ -57,6 +57,10 @@ Log::~Log()
if (raLogfile != NULL)
fclose(raLogfile);
raLogfile = NULL;
if (chatLogfile != NULL)
fclose(chatLogfile);
chatLogfile = NULL;
}
void Log::SetLogLevel(char *Level)