Removed some dead code in SCinter

Loglisten showed to much stuff, no filtering. Filtering added.
This commit is contained in:
2016-11-21 13:37:10 +01:00
parent f2aa76b396
commit c39f96c253
2 changed files with 5 additions and 14 deletions

View File

@ -294,20 +294,6 @@ int InterpExecute(SicsInterp * self, SConnection * pCon, char *pText)
assert(self); assert(self);
assert(pCon); assert(pCon);
/* write info to Log
if (pCon->sockHandle >= 0) {
snprintf(pBueffel,1023, "Executing -> %s <- from socket %d", pText,
pCon->sockHandle);
SICSLogWrite(pBueffel, eCommand);
} else {
snprintf(pBueffel,1023, "Executing -> %s <- from dummy socket\n", pText);
SICSLogWrite(pBueffel, eCommand);
}
TODO: disabled for now. This is a duplication of what is logged in SCInvoke.
Mark Koennecke, February 2016
*/
if(strstr(pText,tclescape) == pText){ if(strstr(pText,tclescape) == pText){
return TclExecFunc(pCon,self,NULL,pText); return TclExecFunc(pCon,self,NULL,pText);

View File

@ -28,6 +28,11 @@ static void LogListenCallback(unsigned int severity, const char *timeStamp,
ListenEntry current; ListenEntry current;
int status, cleanupNeeded = 0; int status, cleanupNeeded = 0;
if(logFilter(severity,subsystem,message) == 1) {
return;
}
status = LLDnodePtr2First(listenerList); status = LLDnodePtr2First(listenerList);
while(status != 0){ while(status != 0){
LLDnodeDataTo(listenerList,&current); LLDnodeDataTo(listenerList,&current);