Make the standard output loglevel low even if the debug file loglevel is high.

This commit is contained in:
JoelKatz
2012-10-22 09:22:32 -07:00
parent 4b2b75b367
commit 5bc0838d2a

View File

@@ -70,8 +70,9 @@ void Application::run()
{
assert(mTxnDB == NULL);
if (!theConfig.DEBUG_LOGFILE.empty())
{
{ // Let DEBUG messages go to the file but only WARNING or higher to regular output
Log::setLogFile(theConfig.DEBUG_LOGFILE);
Log::setMinSeverity(lsWARNING);
LogPartition::setSeverity(lsDEBUG);
}