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