Turn off some minor debugging, and ensure that the system health check gets saved into temporary storage for later use as needed.

This commit is contained in:
Ken Moore
2016-03-22 10:21:46 -04:00
parent a64fd734c9
commit 427eb7ec25
2 changed files with 4 additions and 3 deletions

View File

@@ -325,7 +325,7 @@ void EventWatcher::CheckSystemState(){
bool ok;
int priority = 0;
qDebug() << "Starting health check";
//qDebug() << "Starting health check";
// Query the system, check how things are running
// First up, get the hostname
@@ -364,10 +364,11 @@ void EventWatcher::CheckSystemState(){
// Priority 0-10
obj.insert("priority", DisplayPriority(priority) );
qDebug() << "Done health check";
//qDebug() << "Done health check";
// Log and send out event
LogManager::log(LogManager::EV_STATE, obj);
HASH.insert(SYSSTATE, obj);
emit NewEvent(SYSSTATE, obj);
}

View File

@@ -233,7 +233,7 @@ if(out.in_struct.namesp.toLower() == "rpc"){
if(sub>=0 && !evlist.isEmpty() ){
for(int i=0; i<evlist.length(); i++){
EventWatcher::EVENT_TYPE type = EventWatcher::typeFromString(evlist[i]);
qDebug() << " - type:" << type;
//qDebug() << " - type:" << type;
if(type==EventWatcher::BADEVENT){ continue; }
outargs.insert(out.in_struct.name,QJsonValue(evlist[i]));
if(sub==1){