fixed: log class using wrong debug macros

This commit is contained in:
Nick Bolton 2012-07-29 02:10:25 +00:00
parent 65edd6a8c1
commit dde0cfabc1
1 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ static const char* g_priority[] = {
static const int g_numPriority = (int)(sizeof(g_priority) / sizeof(g_priority[0])); static const int g_numPriority = (int)(sizeof(g_priority) / sizeof(g_priority[0]));
// the default priority // the default priority
#if defined(_DEBUG) || defined(DEBUG) #ifndef NDEBUG
static const int g_defaultMaxPriority = kDEBUG; static const int g_defaultMaxPriority = kDEBUG;
#else #else
static const int g_defaultMaxPriority = kINFO; static const int g_defaultMaxPriority = kINFO;
@ -176,7 +176,7 @@ CLog::print(const char* file, int line, const char* fmt, ...)
char message[2048]; char message[2048];
#if defined(_DEBUG) || defined(DEBUG) #ifndef NDEBUG
struct tm *tm; struct tm *tm;
char tmp[220]; char tmp[220];
time_t t; time_t t;