Improve log level selection from command line. Some extra shutdown logging.

This commit is contained in:
JoelKatz
2012-12-20 09:27:50 -08:00
parent ca25c6c3fb
commit 0106365098
4 changed files with 22 additions and 4 deletions

View File

@@ -260,6 +260,7 @@ void ValidationCollection::flush()
{
bool anyNew = false;
cLog(lsINFO) << "Flushing validations";
boost::mutex::scoped_lock sl(mValidationLock);
BOOST_FOREACH(u160_val_pair& it, mCurrentValidations)
{
@@ -276,6 +277,7 @@ void ValidationCollection::flush()
boost::this_thread::sleep(boost::posix_time::milliseconds(100));
sl.lock();
}
cLog(lsDEBUG) << "Validations flushed";
}
void ValidationCollection::condWrite()