Added a -h option to sicslog querying
Fixed the mongodb path in sicslogmain to point to the production server
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user