From 9aacfd0955fc70f27165254a2844618c85e8600d Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 8 Sep 2006 09:56:40 +0000 Subject: [PATCH] Dont override log level (e.g. when set with YAZ_LOG env) --- test/api/testlib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/api/testlib.c b/test/api/testlib.c index 31c9219..5735254 100644 --- a/test/api/testlib.c +++ b/test/api/testlib.c @@ -1,4 +1,4 @@ -/* $Id: testlib.c,v 1.37 2006-08-31 08:36:53 adam Exp $ +/* $Id: testlib.c,v 1.38 2006-09-08 09:56:40 adam Exp $ Copyright (C) 1995-2006 Index Data ApS @@ -44,7 +44,6 @@ int log_level=0; /* not static, t*.c may use it */ void tl_start_log(int argc, char **argv) { - int cmd_level = 0; char logname[2048]; if (!argv) return; @@ -59,7 +58,8 @@ void tl_start_log(int argc, char **argv) log_level = yaz_log_mask_str_x(argv[1], 0); if (argc >= 3) yaz_log_time_format(argv[2]); - yaz_log_init_level(YLOG_DEFAULT_LEVEL | log_level | cmd_level); + if (log_level) + yaz_log_init_level(log_level); yaz_log(log_level, "starting %s", argv[0]); } -- 1.7.10.4