- changed logging functionality (CompactCommandLog option)
This commit is contained in:
@ -514,8 +514,7 @@ int SCWriteSycamore(SConnection *pCon, char *pBuffer, int iOut)
|
||||
/* write to commandlog if user or manager privilege */
|
||||
if(SCGetRights(pCon) <= usUser)
|
||||
{
|
||||
sprintf(pBueffel,"To sock %d :",iRet);
|
||||
WriteToCommandLog(pBueffel,pBuffer);
|
||||
WriteToCommandLogId(NULL,iRet,pBuffer);
|
||||
}
|
||||
|
||||
/* put it into the interpreter if present */
|
||||
@ -713,15 +712,13 @@ int SCWriteJSON_String(SConnection *pCon, char *pBuffer, int iOut)
|
||||
{
|
||||
if(pCon->iMacro != 1)
|
||||
{
|
||||
sprintf(pBueffel,"To sock %d :",iRet);
|
||||
WriteToCommandLog(pBueffel,pBuffer);
|
||||
WriteToCommandLogId(NULL,iRet,pBuffer);
|
||||
}
|
||||
else
|
||||
{
|
||||
if(iOut == eError || iOut == eWarning)
|
||||
{
|
||||
sprintf(pBueffel,"To sock %d :",iRet);
|
||||
WriteToCommandLog(pBueffel,pBuffer);
|
||||
WriteToCommandLogId(NULL,iRet,pBuffer);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user