From: Adam Dickmeiss Date: Mon, 24 Jun 2013 08:18:08 +0000 (+0200) Subject: zebraidx check command uses fileVerboseLimit ZEB-657 X-Git-Tag: v2.0.55~5 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=bb39ca3dd76e6339f66813bca1e64b644760e5a2;p=idzebra-moved-to-github.git zebraidx check command uses fileVerboseLimit ZEB-657 Option -f of zebraidx controls max number of logs for each check failure category. --- diff --git a/index/zebraapi.c b/index/zebraapi.c index 7cb1667..e47132c 100644 --- a/index/zebraapi.c +++ b/index/zebraapi.c @@ -2413,7 +2413,6 @@ ZEBRA_RES zebra_register_check(ZebraHandle zh, const char *spec) { ZEBRA_RES res = ZEBRA_FAIL; unsigned flags = 0; - int message_limit = 10; if (!spec || *spec == '\0' || !strcmp(spec, "dict") || !strcmp(spec, "default")) @@ -2425,13 +2424,13 @@ ZEBRA_RES zebra_register_check(ZebraHandle zh, const char *spec) else return ZEBRA_FAIL; - yaz_log(YLOG_LOG, "zebra_register_check begin flags=%u message_limit=%d", - flags, message_limit); + yaz_log(YLOG_LOG, "zebra_register_check begin flags=%u", flags); if (zebra_begin_read(zh) == ZEBRA_OK) { zint no_records_total = 0; zint no_records_fail = 0; zint total_keys = 0; + int message_limit = zh->m_file_verbose_limit; if (zh->reg) {