Reduce noise in log files when using the JSON protocol
This commit is contained in:
@ -695,9 +695,11 @@ int SCWriteJSON_String(SConnection * pCon, char *pBuffer, int iOut)
|
|||||||
} else {
|
} else {
|
||||||
iRet = 0;
|
iRet = 0;
|
||||||
}
|
}
|
||||||
snprintf(pBueffel,sizeof(pBueffel)-1, "Next line intended for socket: %d", iRet);
|
if (pCon->iMacro != 1) {
|
||||||
SICSLogWrite(pBueffel, eInternal);
|
snprintf(pBueffel,sizeof(pBueffel)-1, "Next line intended for socket: %d", iRet);
|
||||||
SICSLogWrite(pBuffer, iOut);
|
SICSLogWrite(pBueffel, eInternal);
|
||||||
|
SICSLogWrite(pBuffer, iOut);
|
||||||
|
}
|
||||||
|
|
||||||
/* write to commandlog if user or manager privilege */
|
/* write to commandlog if user or manager privilege */
|
||||||
if (SCGetRights(pCon) <= usUser) {
|
if (SCGetRights(pCon) <= usUser) {
|
||||||
|
Reference in New Issue
Block a user