From: Adam Dickmeiss Date: Thu, 4 Oct 2012 07:47:19 +0000 (+0000) Subject: Log when metaproxy is invoked in test mode (-t) X-Git-Tag: v1.3.47~2 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=4bd08b71f78bb367242def280d60aad067f826bd;p=metaproxy-moved-to-github.git Log when metaproxy is invoked in test mode (-t) --- 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; }