From 963d7c50fdb67085cb25765c3800c60a0dca526d Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Fri, 11 Mar 2011 11:49:54 +0100 Subject: [PATCH] suppressed some overly repeated log messages --- src/query/plaintorich.cpp | 6 +++--- src/rcldb/rcldb.cpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/query/plaintorich.cpp b/src/query/plaintorich.cpp index abbf5c2b..6be68332 100644 --- a/src/query/plaintorich.cpp +++ b/src/query/plaintorich.cpp @@ -315,7 +315,7 @@ bool PlainToRich::plaintorich(const string& in, const vector >& groups(hdata.groups); const vector& slacks(hdata.gslks); - if (DebugLog::getdbl()->getlevel() >= DEBDEB0) { + if (0 && DebugLog::getdbl()->getlevel() >= DEBDEB0) { LOGDEB0(("plaintorich: terms: \n")); string sterms = vecStringToString(terms); LOGDEB0((" %s\n", sterms.c_str())); @@ -338,7 +338,7 @@ bool PlainToRich::plaintorich(const string& in, // Note: the splitter returns the term locations in byte, not // character, offsets. splitter.text_to_words(in); - LOGDEB0(("plaintorich: split done %d mS\n", chron.millis())); + LOGDEB2(("plaintorich: split done %d mS\n", chron.millis())); // Compute the positions for NEAR and PHRASE groups. splitter.matchGroups(); @@ -500,6 +500,6 @@ bool PlainToRich::plaintorich(const string& in, fclose(fp); } #endif - LOGDEB0(("plaintorich: done %d mS\n", chron.millis())); + LOGDEB2(("plaintorich: done %d mS\n", chron.millis())); return true; } diff --git a/src/rcldb/rcldb.cpp b/src/rcldb/rcldb.cpp index 7fb265f1..cfba17de 100644 --- a/src/rcldb/rcldb.cpp +++ b/src/rcldb/rcldb.cpp @@ -221,7 +221,7 @@ static void listList(const string& what, const list&l) string Db::Native::makeAbstract(Xapian::docid docid, Query *query) { Chrono chron; - LOGDEB0(("makeAbstract:%d: maxlen %d wWidth %d\n", chron.ms(), + LOGDEB2(("makeAbstract:%d: maxlen %d wWidth %d\n", chron.ms(), m_rcldb->m_synthAbsLen, m_rcldb->m_synthAbsWordCtxLen)); list terms; @@ -500,7 +500,7 @@ string Db::Native::makeAbstract(Xapian::docid docid, Query *query) if (!abstract.compare("... ")) abstract.clear(); - LOGDEB0(("makeAbtract: done in %d mS\n", chron.millis())); + LOGDEB2(("makeAbtract: done in %d mS\n", chron.millis())); return abstract; }