From: Dennis Schafroth Date: Tue, 22 May 2012 15:16:51 +0000 (+0200) Subject: Expand test to enabled modules logging with log level X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=071a48812788dd82208ab9b719e4ecfac6ff0720;p=yaz-moved-to-github.git Expand test to enabled modules logging with log level --- diff --git a/test/test_log.c b/test/test_log.c index 5e77136..faf2822 100644 --- a/test/test_log.c +++ b/test/test_log.c @@ -24,11 +24,12 @@ int main(int argc, char **argv) { char *arg; int i, ret; - int level = YLOG_LOG; + int message_level = YLOG_LOG; + int module_no = 0; int number = 1; unsigned int wait_between_log = 0; - while ((ret = options("f:p:v:l:m:n:r:w:Hh", argv, argc, &arg)) != -2) + while ((ret = options("f:p:v:l:m:M:n:r:w:Hh", argv, argc, &arg)) != -2) { switch (ret) { @@ -54,7 +55,10 @@ int main(int argc, char **argv) number = atoi(arg); break; case 'm': - level = yaz_log_module_level(arg); + module_no = yaz_log_module_level(arg); + break; + case 'M': + message_level = yaz_log_module_level(arg); break; case 'w': wait_between_log = atoi(arg); @@ -65,7 +69,7 @@ int main(int argc, char **argv) case 0: for (i = 0; i