src/parasol/paraNodeStart/paraNodeStart.c 1.16
1.16 2010/01/12 09:09:15 markd
add option to set minimum log level, move some logging to debug
Index: src/parasol/paraNodeStart/paraNodeStart.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/parasol/paraNodeStart/paraNodeStart.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -b -B -U 4 -r1.15 -r1.16
--- src/parasol/paraNodeStart/paraNodeStart.c 21 Nov 2009 01:07:58 -0000 1.15
+++ src/parasol/paraNodeStart/paraNodeStart.c 12 Jan 2010 09:09:15 -0000 1.16
@@ -7,8 +7,9 @@
/* command line option specifications */
static struct optionSpec optionSpecs[] = {
{"logFacility", OPTION_STRING},
+ {"logMinPriority", OPTION_STRING},
{"log", OPTION_STRING},
{"hub", OPTION_STRING},
{"umask", OPTION_INT},
{"userPath", OPTION_STRING},
@@ -36,8 +37,10 @@
"It may have other columns as well.\n"
"options:\n"
" -exe=/path/to/paraNode\n"
" -logFacility=facility Log to the specified syslog facility - default local0.\n"
+ " -logMinPriority=pri minimum syslog priority to log, also filters file logging.\n"
+ " defaults to \"warn\"\n"
" -log=file Log to file instead of syslog.\n"
" -umask=000 Set umask to run under - default 002.\n"
" -randomDelay=N Set random start delay in milliseconds - default 5000.\n"
" -userPath=bin:bin/i386 User dirs to add to path.\n"
@@ -84,8 +87,9 @@
lf->lineIx, lf->fileName);
dyStringClear(dy);
dyStringPrintf(dy, "%s %s %s start -cpu=%d", rsh, name, exe, cpu);
carryOption("logFacility", dy);
+ carryOption("logMinPriority", dy);
carryOption("log", dy);
carryOption("hub", dy);
carryOption("umask", dy);
carryOption("sysPath", dy);