mirror of
https://github.com/debauchee/barrier.git
synced 2025-06-21 20:17:03 +02:00
Removed 64-bit warning, and reduced more code duplication
This commit is contained in:
parent
028142bee9
commit
a19e800b99
4 changed files with 16 additions and 24 deletions
|
@ -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())));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue