* Fixed file open/close of chatLogfile.
--HG-- branch : trunk
This commit is contained in:
+5
-1
@@ -31,7 +31,7 @@ INSTANTIATE_SINGLETON_1( Log );
|
|||||||
|
|
||||||
Log::Log() :
|
Log::Log() :
|
||||||
raLogfile(NULL), logfile(NULL), gmLogfile(NULL), charLogfile(NULL),
|
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();
|
Initialize();
|
||||||
}
|
}
|
||||||
@@ -57,6 +57,10 @@ Log::~Log()
|
|||||||
if (raLogfile != NULL)
|
if (raLogfile != NULL)
|
||||||
fclose(raLogfile);
|
fclose(raLogfile);
|
||||||
raLogfile = NULL;
|
raLogfile = NULL;
|
||||||
|
|
||||||
|
if (chatLogfile != NULL)
|
||||||
|
fclose(chatLogfile);
|
||||||
|
chatLogfile = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Log::SetLogLevel(char *Level)
|
void Log::SetLogLevel(char *Level)
|
||||||
|
|||||||
Reference in New Issue
Block a user