Add more Validators journal reports

This commit is contained in:
Vinnie Falco
2013-09-28 09:53:50 -07:00
parent 8e58551475
commit 97f1b41b4d
2 changed files with 23 additions and 8 deletions

View File

@@ -37,7 +37,7 @@ enum
,checkEverySeconds = 60 * 60
#else
secondsBetweenFetches = 5 * 60
,checkEverySeconds = 60 * 60
,checkEverySeconds = 60
#endif
// This tunes the preallocated arrays

View File

@@ -129,10 +129,6 @@ public:
, m_checkSources (true)
{
m_journal.sink().set_console (true);
addRPCHandlers();
startThread();
}
~ManagerImp ()
@@ -145,9 +141,28 @@ public:
// Stoppable
//
void onStop (Journal)
void onPrepare (Journal journal)
{
journal.info << "Preparing Validators";
addRPCHandlers();
}
void onStart (Journal journal)
{
journal.info << "Starting Validators";
startThread();
}
void onStop (Journal journal)
{
journal.info << "Stopping Validators";
if (this->Thread::isThreadRunning())
m_queue.dispatch (bind (&Thread::signalThreadShouldExit, this));
else
stopped();
}
//--------------------------------------------------------------------------
@@ -301,7 +316,7 @@ public:
m_checkSources = false;
m_journal.trace << "Next check timer expires in " <<
RelativeTime::seconds (checkEverySeconds) << " seconds";
RelativeTime::seconds (checkEverySeconds);
m_checkTimer.setExpiration (checkEverySeconds);
}