Reduce noise in log files when using the JSON protocol

This commit is contained in:
Douglas Clowes
2012-11-29 12:47:21 +11:00
parent 97aaccf4e2
commit 53ce7dc584

View File

@ -695,9 +695,11 @@ int SCWriteJSON_String(SConnection * pCon, char *pBuffer, int iOut)
} else {
iRet = 0;
}
snprintf(pBueffel,sizeof(pBueffel)-1, "Next line intended for socket: %d", iRet);
SICSLogWrite(pBueffel, eInternal);
SICSLogWrite(pBuffer, iOut);
if (pCon->iMacro != 1) {
snprintf(pBueffel,sizeof(pBueffel)-1, "Next line intended for socket: %d", iRet);
SICSLogWrite(pBueffel, eInternal);
SICSLogWrite(pBuffer, iOut);
}
/* write to commandlog if user or manager privilege */
if (SCGetRights(pCon) <= usUser) {