diff options
author | Austin Clements <amdragon@MIT.EDU> | 2012-03-13 22:31:31 -0400 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2012-03-18 09:14:22 -0300 |
commit | 28367a9bcdda7330a4d0983c3533a7bf5b9cbb8e (patch) | |
tree | 0633dd67131f9e2f731da8fbca039e547c87bc47 /lib | |
parent | 75a05526334b721d719d6c8a8098ff64573e6c1e (diff) |
lib: Add exclude query debug output
Diffstat (limited to 'lib')
-rw-r--r-- | lib/query.cc | 10 |
1 files changed, 8 insertions, 2 deletions
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); |