X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fextract.c;h=8b4ae2266e58ed918f53f98da2f5bbc6888092bf;hb=819a419fefe487a23624e5f94b6a20b342ce2de8;hp=2e6654d36215f0e82adf9346f6434e4e47792bac;hpb=8ee402d79e37344b08c2b54ad45b50e8327a6c03;p=idzebra-moved-to-github.git diff --git a/index/extract.c b/index/extract.c index 2e6654d..8b4ae22 100644 --- a/index/extract.c +++ b/index/extract.c @@ -1,4 +1,4 @@ -/* $Id: extract.c,v 1.163 2004-09-27 10:44:49 adam Exp $ +/* $Id: extract.c,v 1.165 2004-10-04 09:27:48 adam Exp $ Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004 Index Data Aps @@ -494,8 +494,9 @@ static int file_extract_record(ZebraHandle zh, if (!zh->m_flag_rw) return 1; - logf (LOG_WARN, "empty %s %s " PRINTF_OFF_T, zh->m_record_type, - fname, recordOffset); + if (zh->records_processed < zh->m_file_verbose_limit) + logf (LOG_WARN, "empty %s %s " PRINTF_OFF_T, zh->m_record_type, + fname, recordOffset); return 1; } } @@ -1542,7 +1543,7 @@ static void extract_add_complete_field (RecWord *p) int i = 0, remain = p->length; int first; /* first position */ -yaz_log(LOG_DEBUG, "Complete field, w='%s'", p->string); +yaz_log(LOG_DEBUG, "Complete field, w='%.*s'", p->length, p->string); if (remain > 0) map = zebra_maps_input (p->zebra_maps, p->reg_type, &b, remain, 1);