Added a -h option to sicslog querying

Fixed the mongodb path in sicslogmain to point to the production server
This commit is contained in:
2016-04-14 14:57:55 +02:00
parent 1fb85ef6b5
commit 78f6b92960
4 changed files with 18 additions and 6 deletions

View File

@@ -182,7 +182,11 @@ static int MongoQueryAction(SConnection * pCon, SicsInterp * pSics,
status = sicslogQuery(argc,argv,QueryCallback,result);
if(status != 0){
error = sicslogGetError();
SCPrintf(pCon,eError,"Error %s querying mongodb", error);
if(strstr(error,"Options") != NULL){
SCPrintf(pCon,eValue,"%s", error);
} else {
SCPrintf(pCon,eError,"Error %s querying mongodb", error);
}
} else {
SCPureSockWrite(pCon,GetCharArray(result),eLog);
}