From: Adam Dickmeiss Date: Mon, 6 Jul 2009 11:59:20 +0000 (+0200) Subject: Avoid logging of all compression/decompression X-Git-Tag: v2.0.39~5 X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=commitdiff_plain;h=e43cf25b9705f8428249a707b68f0e148c51e511 Avoid logging of all compression/decompression --- diff --git a/index/records.c b/index/records.c index 60908db..f4a9cf9 100644 --- a/index/records.c +++ b/index/records.c @@ -509,8 +509,6 @@ static ZEBRA_RES rec_flush_shared(Records p, short ref_count, zint *sysnos, csize = destLen; if (r == Z_OK) { - yaz_log(YLOG_LOG, "compress %4d %5d %5d", ref_count, - out_offset, csize); break; } if (r != Z_MEM_ERROR) @@ -540,8 +538,6 @@ static ZEBRA_RES rec_flush_shared(Records p, short ref_count, zint *sysnos, yaz_log(YLOG_WARN, "bzBuffToBuffCompress error code=%d", i); csize = 0; } - yaz_log(YLOG_LOG, "compress %4d %5d %5d", ref_count, - out_offset, csize); #endif break; case REC_COMPRESS_NONE: @@ -803,7 +799,6 @@ static Record rec_get_int(Records p, zint sysno) (const Bytef *) in_buf, in_size); if (i == Z_OK) { - yaz_log(YLOG_LOG, "decompress %5d %5d", in_size, bz_size); bz_size = destLen; break; } @@ -830,7 +825,6 @@ static Record rec_get_int(Records p, zint sysno) i = bzBuffToBuffDecompress #endif (bz_buf, &bz_size, in_buf, in_size, 0, 0); - yaz_log(YLOG_LOG, "decompress %5d %5d", in_size, bz_size); if (i == BZ_OK) break; yaz_log(YLOG_LOG, "failed");