From: Austin Clements Date: Wed, 14 Mar 2012 02:31:31 +0000 (-0400) Subject: lib: Add exclude query debug output X-Git-Tag: 0.13_rc1~144 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=28367a9bcdda7330a4d0983c3533a7bf5b9cbb8e lib: Add exclude query debug output --- diff --git a/lib/query.cc b/lib/query.cc index 1e5e99a5..53d505a5 100644 --- a/lib/query.cc +++ b/lib/query.cc @@ -261,9 +261,12 @@ notmuch_query_search_messages (notmuch_query_t *query) break; } - if (_debug_query ()) + if (_debug_query ()) { + fprintf (stderr, "Exclude query is:\n%s\n", + exclude_query.get_description ().c_str ()); fprintf (stderr, "Final query is:\n%s\n", final_query.get_description ().c_str ()); + } enquire.set_query (final_query); @@ -537,9 +540,12 @@ notmuch_query_count_messages (notmuch_query_t *query) enquire.set_weighting_scheme(Xapian::BoolWeight()); enquire.set_docid_order(Xapian::Enquire::ASCENDING); - if (_debug_query ()) + if (_debug_query ()) { + fprintf (stderr, "Exclude query is:\n%s\n", + exclude_query.get_description ().c_str ()); fprintf (stderr, "Final query is:\n%s\n", final_query.get_description ().c_str ()); + } enquire.set_query (final_query);