From 4bd08b71f78bb367242def280d60aad067f826bd Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 4 Oct 2012 07:47:19 +0000 Subject: [PATCH] Log when metaproxy is invoked in test mode (-t) --- src/metaproxy_prog.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/metaproxy_prog.cpp b/src/metaproxy_prog.cpp index 19434be..b72a6ac 100644 --- a/src/metaproxy_prog.cpp +++ b/src/metaproxy_prog.cpp @@ -197,11 +197,11 @@ static int sc_main( return 1; } - if (!test_config) - yaz_log(YLOG_LOG, "metaproxy start " VERSION + yaz_log(YLOG_LOG, "metaproxy %s " VERSION #ifdef VERSION_SHA1 " " VERSION_SHA1 #endif + , test_config ? "test" : "start" ); yaz_log_xml_errors(0, YLOG_LOG); @@ -261,6 +261,8 @@ static int sc_main( ret = 1; } xmlFreeDoc(doc); + if (test_config) + yaz_log(YLOG_LOG, "metaproxy test exit code %d", ret); return ret; } -- 1.7.10.4