Core/Logging: Performance-related tweaks to logging system

All sLog->out* functions (except outCommand atm) are replaced with TC_LOG_* macros.
    Memleak fix
This commit is contained in:
Spp committed 2013-05-13 15:07:36 +02:00
1 parent 243c325ca4
commit d1677b2db0
240 files changed
+4580 -4563

No files matched your search

+4 -4
View File
@@ -889,7 +889,7 @@ public:
if (dontdel_str)
{
//sLog->outError(LOG_FILTER_GENERAL, "DEBUG: All 3 params are set");
//TC_LOG_ERROR(LOG_FILTER_GENERAL, "DEBUG: All 3 params are set");
// All 3 params are set
// GUID
@@ -897,7 +897,7 @@ public:
// doNotDEL
if (stricmp(dontdel_str, "NODEL") == 0)
{
//sLog->outError(LOG_FILTER_GENERAL, "DEBUG: doNotDelete = true;");
//TC_LOG_ERROR(LOG_FILTER_GENERAL, "DEBUG: doNotDelete = true;");
doNotDelete = true;
}
}
@@ -906,10 +906,10 @@ public:
// Only 2 params - but maybe NODEL is set
if (type_str)
{
sLog->outError(LOG_FILTER_GENERAL, "DEBUG: Only 2 params ");
TC_LOG_ERROR(LOG_FILTER_GENERAL, "DEBUG: Only 2 params ");
if (stricmp(type_str, "NODEL") == 0)
{
//sLog->outError(LOG_FILTER_GENERAL, "DEBUG: type_str, NODEL ");
//TC_LOG_ERROR(LOG_FILTER_GENERAL, "DEBUG: type_str, NODEL ");
doNotDelete = true;
type_str = NULL;
}