mirror of
https://github.com/outbackdingo/sysadm.git
synced 2026-01-27 10:20:26 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user