- changed logging functionality (CompactCommandLog option)

This commit is contained in:
zolliker
2008-01-18 07:26:51 +00:00
parent af233c713a
commit 17ba72418f
2 changed files with 4 additions and 6 deletions

View File

@ -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);
}
}
}