- changed logging functionality (CompactCommandLog option)
This commit is contained in:
15
SICSmain.c
15
SICSmain.c
@ -21,6 +21,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "nserver.h"
|
#include "nserver.h"
|
||||||
|
#include "servlog.h"
|
||||||
|
|
||||||
/***************************** Necessary Globals ****************************/
|
/***************************** Necessary Globals ****************************/
|
||||||
|
|
||||||
@ -39,16 +40,18 @@
|
|||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
int iRet;
|
int iRet;
|
||||||
|
char *file=NULL;
|
||||||
|
int i;
|
||||||
|
|
||||||
/* initialise, will die on you if problems */
|
/* initialise, will die on you if problems */
|
||||||
if(argc >= 2)
|
for (i=1; i<argc; i++) {
|
||||||
{
|
if (strcmp(argv[i], "-nolog") == 0) {
|
||||||
iRet = InitServer(argv[1],&pServ);
|
SICSLogEnable(0);
|
||||||
|
} else if (file == NULL) {
|
||||||
|
file = argv[i];
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
iRet = InitServer(NULL,&pServ);
|
|
||||||
}
|
}
|
||||||
|
iRet = InitServer(file,&pServ);
|
||||||
if(!iRet)
|
if(!iRet)
|
||||||
{
|
{
|
||||||
printf("Unrecoverable error on server startup, exiting.........\n");
|
printf("Unrecoverable error on server startup, exiting.........\n");
|
||||||
|
Reference in New Issue
Block a user