From 5bc0838d2af389b448d02677c532221214a46411 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Mon, 22 Oct 2012 09:22:32 -0700 Subject: [PATCH] Make the standard output loglevel low even if the debug file loglevel is high. --- src/Application.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Application.cpp b/src/Application.cpp index 0d777f5186..d7bc415209 100644 --- a/src/Application.cpp +++ b/src/Application.cpp @@ -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); }