diff options
author | XTZGZoReX <none@none> | 2009-03-24 14:34:50 +0100 |
---|---|---|
committer | XTZGZoReX <none@none> | 2009-03-24 14:34:50 +0100 |
commit | ede1f7dd07fb9c062ed9f6f0bd1551ae491fd369 (patch) | |
tree | 64328e71aeeb52383f6ab172d127f5285c980aa2 | |
parent | b269d948485cec5ce90a63d0a13f428834c08001 (diff) |
* Some costmetic changes in Log class.
* Removed LOG_TYPE_PACKET and changed LOG_TYPE_CRASH from 10 to 9.
--HG--
branch : trunk
-rw-r--r-- | src/shared/Log.cpp | 18 | ||||
-rw-r--r-- | src/shared/Log.h | 3 |
2 files changed, 4 insertions, 17 deletions
diff --git a/src/shared/Log.cpp b/src/shared/Log.cpp index e443d10ed6c..9f7167f9238 100644 --- a/src/shared/Log.cpp +++ b/src/shared/Log.cpp @@ -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); diff --git a/src/shared/Log.h b/src/shared/Log.h index ecca9587b0e..a82b5a6a068 100644 --- a/src/shared/Log.h +++ b/src/shared/Log.h @@ -46,8 +46,7 @@ enum LogTypes LOG_TYPE_WORLD = 6, LOG_TYPE_RA = 7, LOG_TYPE_GM = 8, - LOG_TYPE_PACKET = 9, - LOG_TYPE_CRASH = 10, + LOG_TYPE_CRASH = 9, MAX_LOG_TYPES }; |