Removed the suppression list again from logv2.c for fear of performance issues.
I rather implemented the suppression of TRANSACT messages in macro.c
This commit is contained in:
13
macro.c
13
macro.c
@@ -1083,6 +1083,13 @@ int TclPublish(SConnection * pCon, SicsInterp * pSics, void *pData,
|
||||
Transact executes a command and sends a TRANSACTIONFINISHED string
|
||||
at the end. This is to permit clients to search for this string in
|
||||
order to find out when a command has finished.
|
||||
|
||||
MK, May 2016
|
||||
|
||||
I changed this to write the TRANSACT strings only to the socket and not to the
|
||||
log. Because this is clogging the log with useless stuff. If you want to
|
||||
debug the protocol you still can sit on the line with sockspy. But I am unsure
|
||||
of this change...
|
||||
*/
|
||||
|
||||
|
||||
@@ -1091,6 +1098,7 @@ int TransactAction(SConnection * pCon, SicsInterp * pSics, void *pData,
|
||||
int argc, char *argv[])
|
||||
{
|
||||
char pBuffer[1024];
|
||||
char pStartBuffer[1088];
|
||||
char *pCommand;
|
||||
int iRet;
|
||||
|
||||
@@ -1101,11 +1109,12 @@ int TransactAction(SConnection * pCon, SicsInterp * pSics, void *pData,
|
||||
}
|
||||
strtolower(argv[0]);
|
||||
if (strcmp(argv[0], "fulltransact") == 0) {
|
||||
SCPrintf(pCon, eLog, "TRANSACTIONSTART %s", pCommand);
|
||||
snprintf(pStartBuffer, sizeof(pStartBuffer), "TRANSACTIONSTART %s", pCommand);
|
||||
SCPureSockWrite(pCon, pStartBuffer,eLog);
|
||||
}
|
||||
iRet = InterpExecute(pSics, pCon, pCommand);
|
||||
if (pCommand != pBuffer)
|
||||
free(pCommand);
|
||||
SCWrite(pCon, "TRANSACTIONFINISHED", eLog);
|
||||
SCPureSockWrite(pCon, "TRANSACTIONFINISHED", eLog);
|
||||
return iRet;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user