This is the first working version of the new logging system. Some work
in fine tuning still needs to be done. But is reasonably OK now.
This commit is contained in:
6
remob.c
6
remob.c
@ -17,9 +17,7 @@ M. Zolliker July 04
|
||||
#include "remob.h"
|
||||
#include "splitter.h"
|
||||
#include "status.h"
|
||||
#include "servlog.h"
|
||||
#include "site.h"
|
||||
#include "commandlog.h"
|
||||
/*-------------------------------------------------------------------------*/
|
||||
#define INTERRUPTMODE 0
|
||||
#define ACCESSCODE 1
|
||||
@ -275,7 +273,7 @@ static int RemServerTask(void *data)
|
||||
continue;
|
||||
|
||||
if (strstr(rc->line, " ") == rc->line) {
|
||||
WriteToCommandLog("REMOB>", "infinite echo loop detected");
|
||||
Log(ERROR,"sys","%s:%s","REMOB", "infinite echo loop detected");
|
||||
continue;
|
||||
}
|
||||
if (isUser == 0) {
|
||||
@ -629,7 +627,7 @@ static int InterestCallback(int iEvent, void *pEvent, void *pUser)
|
||||
|
||||
snprintf(buf, sizeof(buf), "%s.position = %g ", pInfo->pName,
|
||||
psCall->fVal);
|
||||
SCWrite(pInfo->pCon, buf, eValue);
|
||||
SCWrite(pInfo->pCon, buf, eEvent);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user