Commit ffcabed6 authored by Kenneth Moreland's avatar Kenneth Moreland
Browse files

By default, have debug logs not show in tests.

Previously, debugging logs were shown in tests and had to be shut
off.  This lead to very verbose output that hardly ever helped much.
Now the behavior is the opposite.  Debug logs are not shown by default
but can be turned on with a flag (assuming compiled in debug mode).
parent 386ca43a
......@@ -169,8 +169,8 @@ static void usage(char **argv)
printf(" -height <n> Height of window (default n=768).\n");
printf(" -display <display>\n");
printf(" X server each node contacts. Default display=localhost:0\n");
printf(" -nologdebug Do not add debugging statements. Provides less information, but\n");
printf(" makes identifying errors and warnings easier.\n");
printf(" -logdebug Add debugging statements. Provides more information, but\n");
printf(" makes identifying errors, warnings, and statuses harder\n");
printf(" -redirect Redirect standard output to log.????, where ???? is the rank\n");
printf(" -- Parse no more arguments.\n");
printf(" -h, -help This help message.\n");
......@@ -183,7 +183,7 @@ void initialize_test(int *argcp, char ***argvp, IceTCommunicator comm)
char **argv = *argvp;
int width = 1024;
int height = 768;
IceTBitField diag_level = ICET_DIAG_FULL;
int redirect = 0;
int rank, num_proc;
......@@ -209,8 +209,8 @@ void initialize_test(int *argcp, char ***argvp, IceTCommunicator comm)
width = atoi(argv[++arg]);
} else if (strcmp(argv[arg], "-height") == 0) {
height = atoi(argv[++arg]);
} else if (strcmp(argv[arg], "-nologdebug") == 0) {
} else if (strcmp(argv[arg], "-logdebug") == 0) {
diag_level &= ICET_DIAG_FULL;
} else if (strcmp(argv[arg], "-redirect") == 0) {
redirect = 1;
} else if ( (strcmp(argv[arg], "-h") == 0)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment