Suppress OK to internal connections that were flooding the log files
r2277 | dcl | 2008-01-15 12:34:18 +1100 (Tue, 15 Jan 2008) | 2 lines
This commit is contained in:
19
conman.c
19
conman.c
@@ -696,9 +696,14 @@ static void writeToLogFiles(SConnection *self, char *buffer)
|
|||||||
{
|
{
|
||||||
iRet = 0;
|
iRet = 0;
|
||||||
}
|
}
|
||||||
sprintf(pBueffel,"Next line intended for socket: %d",iRet);
|
if (iRet == 0 && buffer[0] == 'O' && buffer[1] == 'K') {
|
||||||
SICSLogWrite(pBueffel,eInternal);
|
/* supress */ iRet = 0;
|
||||||
SICSLogWrite(buffer,iOut);
|
}
|
||||||
|
else {
|
||||||
|
sprintf(pBueffel,"Next line intended for socket(1): %d",iRet);
|
||||||
|
SICSLogWrite(pBueffel,eInternal);
|
||||||
|
SICSLogWrite(buffer,iOut);
|
||||||
|
}
|
||||||
|
|
||||||
/* write to commandlog if user or manager privilege */
|
/* write to commandlog if user or manager privilege */
|
||||||
if(SCGetRights(self) <= usUser)
|
if(SCGetRights(self) <= usUser)
|
||||||
@@ -770,7 +775,7 @@ static void writeToLogFiles(SConnection *self, char *buffer)
|
|||||||
{
|
{
|
||||||
iRet = 0;
|
iRet = 0;
|
||||||
}
|
}
|
||||||
sprintf(pBueffel,"Next line intended for socket: %d",iRet);
|
sprintf(pBueffel,"Next line intended for socket(2): %d",iRet);
|
||||||
SICSLogWrite(pBueffel,eInternal);
|
SICSLogWrite(pBueffel,eInternal);
|
||||||
SICSLogWrite(buffer,iOut);
|
SICSLogWrite(buffer,iOut);
|
||||||
|
|
||||||
@@ -901,7 +906,7 @@ pDynString SCEndBuffering(SConnection *pCon)
|
|||||||
{
|
{
|
||||||
iRet = 0;
|
iRet = 0;
|
||||||
}
|
}
|
||||||
sprintf(pBueffel,"Next line intended for socket: %d",iRet);
|
sprintf(pBueffel,"Next line intended for socket(3): %d",iRet);
|
||||||
SICSLogWrite(pBueffel,eInternal);
|
SICSLogWrite(pBueffel,eInternal);
|
||||||
SICSLogWrite(buffer,iOut);
|
SICSLogWrite(buffer,iOut);
|
||||||
|
|
||||||
@@ -941,7 +946,7 @@ pDynString SCEndBuffering(SConnection *pCon)
|
|||||||
{
|
{
|
||||||
iRet = 0;
|
iRet = 0;
|
||||||
}
|
}
|
||||||
sprintf(pBueffel,"Next line intended for socket: %d",iRet);
|
sprintf(pBueffel,"Next line intended for socket(4): %d",iRet);
|
||||||
SICSLogWrite(pBueffel,eInternal);
|
SICSLogWrite(pBueffel,eInternal);
|
||||||
SICSLogWrite(buffer,iOut);
|
SICSLogWrite(buffer,iOut);
|
||||||
|
|
||||||
@@ -962,7 +967,7 @@ pDynString SCEndBuffering(SConnection *pCon)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* put into Serverlog */
|
/* put into Serverlog */
|
||||||
sprintf(pBueffel,"Next line intended for socket: %d",-10);
|
sprintf(pBueffel,"Next line intended for socket(5): %d",-10);
|
||||||
SICSLogWrite(pBueffel,eInternal);
|
SICSLogWrite(pBueffel,eInternal);
|
||||||
SICSLogWrite(buffer,iOut);
|
SICSLogWrite(buffer,iOut);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user