diff --git a/protocol.c b/protocol.c index a6226c17..083fb9bd 100644 --- a/protocol.c +++ b/protocol.c @@ -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) {