/* This file is part of the Zebra server.
- Copyright (C) 2004-2013 Index Data
+ Copyright (C) Index Data
Zebra is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
{
ZEBRA_RES res = ZEBRA_FAIL;
unsigned flags = 0;
- int message_limit = 10;
if (!spec || *spec == '\0'
|| !strcmp(spec, "dict") || !strcmp(spec, "default"))
else if (!strcmp(spec, "quick"))
flags = 0;
else
+ {
+ yaz_log(YLOG_WARN, "Unknown check spec: %s", spec);
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)
{