- 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 */
|
/* write to commandlog if user or manager privilege */
|
||||||
if(SCGetRights(pCon) <= usUser)
|
if(SCGetRights(pCon) <= usUser)
|
||||||
{
|
{
|
||||||
sprintf(pBueffel,"To sock %d :",iRet);
|
WriteToCommandLogId(NULL,iRet,pBuffer);
|
||||||
WriteToCommandLog(pBueffel,pBuffer);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* put it into the interpreter if present */
|
/* put it into the interpreter if present */
|
||||||
@ -713,15 +712,13 @@ int SCWriteJSON_String(SConnection *pCon, char *pBuffer, int iOut)
|
|||||||
{
|
{
|
||||||
if(pCon->iMacro != 1)
|
if(pCon->iMacro != 1)
|
||||||
{
|
{
|
||||||
sprintf(pBueffel,"To sock %d :",iRet);
|
WriteToCommandLogId(NULL,iRet,pBuffer);
|
||||||
WriteToCommandLog(pBueffel,pBuffer);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if(iOut == eError || iOut == eWarning)
|
if(iOut == eError || iOut == eWarning)
|
||||||
{
|
{
|
||||||
sprintf(pBueffel,"To sock %d :",iRet);
|
WriteToCommandLogId(NULL,iRet,pBuffer);
|
||||||
WriteToCommandLog(pBueffel,pBuffer);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
#define SICSLOG
|
#define SICSLOG
|
||||||
#include "Scommon.h"
|
#include "Scommon.h"
|
||||||
void SICSLogWrite(char *ptext, OutCode eOut );
|
void SICSLogWrite(char *ptext, OutCode eOut );
|
||||||
|
void SICSLogEnable(int flag);
|
||||||
int KillCapture(SConnection *pCon);
|
int KillCapture(SConnection *pCon);
|
||||||
|
|
||||||
int LogCapture(SConnection *pCon, SicsInterp *pInter, void *pData,
|
int LogCapture(SConnection *pCon, SicsInterp *pInter, void *pData,
|
||||||
|
Reference in New Issue
Block a user