mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-25 11:21:58 +01:00
* Some costmetic changes in Log class.
* Removed LOG_TYPE_PACKET and changed LOG_TYPE_CRASH from 10 to 9. --HG-- branch : trunk
This commit is contained in:
@@ -429,7 +429,7 @@ void Log::outCrash( const char * err, ... )
|
||||
if(logfile)
|
||||
{
|
||||
outTimestamp(logfile);
|
||||
fprintf(logfile, "CRASH ALARM:" );
|
||||
fprintf(logfile, "CRASH ALARM: " );
|
||||
|
||||
va_list ap;
|
||||
va_start(ap, err);
|
||||
@@ -469,7 +469,7 @@ void Log::outError( const char * err, ... )
|
||||
if(logfile)
|
||||
{
|
||||
outTimestamp(logfile);
|
||||
fprintf(logfile, "ERROR:" );
|
||||
fprintf(logfile, "ERROR: " );
|
||||
|
||||
va_list ap;
|
||||
va_start(ap, err);
|
||||
@@ -487,18 +487,6 @@ void Log::outErrorDb( const char * err, ... )
|
||||
if( !err )
|
||||
return;
|
||||
|
||||
/*
|
||||
if (m_enableLogDB)
|
||||
{
|
||||
va_list ap2;
|
||||
va_start(ap2, err);
|
||||
char nnew_str[MAX_QUERY_LEN];
|
||||
vsnprintf(nnew_str, MAX_QUERY_LEN, err, ap2);
|
||||
outDB(LOG_TYPE_DBERR, nnew_str);
|
||||
va_end(ap2);
|
||||
}
|
||||
*/
|
||||
|
||||
if(m_colored)
|
||||
SetColor(false,RED);
|
||||
|
||||
@@ -512,7 +500,7 @@ void Log::outErrorDb( const char * err, ... )
|
||||
if(logfile)
|
||||
{
|
||||
outTimestamp(logfile);
|
||||
fprintf(logfile, "ERROR:" );
|
||||
fprintf(logfile, "ERROR: " );
|
||||
|
||||
va_list ap;
|
||||
va_start(ap, err);
|
||||
|
||||
Reference in New Issue
Block a user