Removed 64-bit warning, and reduced more code duplication

This commit is contained in:
Nick Bolton 2010-06-05 13:17:35 +00:00
parent 028142bee9
commit a19e800b99
4 changed files with 16 additions and 24 deletions

View file

@ -307,3 +307,14 @@ CApp::setupFileLogging()
LOG((CLOG_DEBUG1 "logging to file (%s) enabled", argsBase().m_logFile));
}
}
void
CApp::loggingFilterWarning()
{
if (CLOG->getFilter() > CLOG->getConsoleMaxLevel()) {
if (argsBase().m_logFile == NULL) {
LOG((CLOG_WARN "log messages above %s are NOT sent to console (use file logging)",
CLOG->getFilterName(CLOG->getConsoleMaxLevel())));
}
}
}