Fix log chattiness. Add a new configuration parameter "debug_logfile"

This commit is contained in:
JoelKatz
2012-06-18 20:05:12 -07:00
parent a3daa061d3
commit a1523fcb06
6 changed files with 44 additions and 8 deletions

View File

@@ -12,6 +12,7 @@
#include "utils.h"
#include "TaggedCache.h"
#include "boost/filesystem.hpp"
#include "Log.h"
Application* theApp = NULL;
@@ -53,7 +54,9 @@ void Application::stop()
void Application::run()
{
assert(mTxnDB==NULL);
assert(mTxnDB == NULL);
if (!theConfig.DEBUG_LOGFILE.empty())
Log::setLogFile(theConfig.DEBUG_LOGFILE);
//
// Construct databases.