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:
@ -37,7 +37,6 @@
|
||||
#include "tcldrivable.h"
|
||||
#include "nserver.h"
|
||||
#include "sicshipadaba.h"
|
||||
#include "commandlog.h"
|
||||
|
||||
|
||||
extern int openDevexecLog(); /* in devexec.c */
|
||||
@ -49,6 +48,7 @@ static void StopExit(void)
|
||||
if (pServ) {
|
||||
StopServer(pServ);
|
||||
}
|
||||
LogClose(NULL);
|
||||
}
|
||||
|
||||
#define DEFAULTINIFILE "servo.tcl"
|
||||
@ -124,7 +124,6 @@ int InitServer(char *file, pServer * pServ)
|
||||
TaskRegisterN(self->pTasker, "nwatch", NetWatchTask, NULL, NULL, NULL, TASK_PRIO_HIGH);
|
||||
|
||||
/* initialise the server from script */
|
||||
SetWriteHistory(0);
|
||||
if (file == NULL) {
|
||||
iRet = InitObjectCommands(self, DEFAULTINIFILE);
|
||||
} else {
|
||||
@ -265,7 +264,6 @@ int InitServer(char *file, pServer * pServ)
|
||||
strcpy(pBueffel, "restore");
|
||||
SCInvoke(self->dummyCon, self->pSics, pBueffel);
|
||||
}
|
||||
SetWriteHistory(1);
|
||||
|
||||
INIT(StatusFileInit);
|
||||
|
||||
@ -376,6 +374,7 @@ void StopServer(pServer self)
|
||||
|
||||
free(self);
|
||||
|
||||
LogClose(NULL);
|
||||
}
|
||||
|
||||
/*------------------------------------------------------------------------*/
|
||||
|
Reference in New Issue
Block a user