Removed some dead code in SCinter
Loglisten showed to much stuff, no filtering. Filtering added.
This commit is contained in:
14
SCinter.c
14
SCinter.c
@ -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);
|
||||||
|
@ -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,¤t);
|
LLDnodeDataTo(listenerList,¤t);
|
||||||
|
Reference in New Issue
Block a user