- changed logging functionality (CompactCommandLog option)

This commit is contained in:
zolliker
2008-01-18 07:49:23 +00:00
parent 7240cecbc5
commit 6776fc6413

View File

@ -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) {
else file = argv[i];
{ }
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");