From: Adam Dickmeiss Date: Thu, 14 May 2009 11:53:49 +0000 (+0200) Subject: Log also Git SHA1 when zebrasrv starts X-Git-Tag: v2.0.37~2 X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=commitdiff_plain;h=8d8fd83ac10dd174264826c11cc301002a9313c1 Log also Git SHA1 when zebrasrv starts --- 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))) {