From 8d8fd83ac10dd174264826c11cc301002a9313c1 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 14 May 2009 13:53:49 +0200 Subject: [PATCH] Log also Git SHA1 when zebrasrv starts --- index/zebraapi.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/index/zebraapi.c b/index/zebraapi.c index 631aaff..a343014 100644 --- a/index/zebraapi.c +++ b/index/zebraapi.c @@ -199,11 +199,14 @@ ZebraService zebra_start_res(const char *configName, Res def_res, Res over_res) log_level = yaz_log_module_level("zebraapi"); log_level_initialized = 1; } - + + *system_str = '\0'; + *version_str = '\0'; zebra_get_version(version_str, system_str); - yaz_log(YLOG_LOG, "zebra_start %s %s", version_str, - configName ? configName : ""); + yaz_log(YLOG_LOG, "zebra_start %s %s", version_str, system_str); + if (configName) + yaz_log(YLOG_LOG, "config %s", configName); if ((res = res_open(def_res, over_res))) { -- 1.7.10.4