Don't display start log message when config testing (-t)
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 24 May 2012 10:39:43 +0000 (12:39 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 24 May 2012 10:39:43 +0000 (12:39 +0200)
src/metaproxy_prog.cpp

index ecdee29..76113f3 100644 (file)
@@ -185,12 +185,13 @@ static int sc_main(
         return 1;
     }
     
-    yaz_log(YLOG_LOG, "metaproxy start " VERSION
+    if (!test_config)
+        yaz_log(YLOG_LOG, "metaproxy start " VERSION
 #ifdef VERSION_SHA1
-            " " VERSION_SHA1
+                " " VERSION_SHA1
 #endif
-        );
-    
+            );
+
     yaz_log_xml_errors(0, YLOG_LOG);
     xmlDocPtr doc = xmlReadFile(fname,
                                 NULL,