mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
lib: Add exclude query debug output
This commit is contained in:
parent
75a0552633
commit
28367a9bcd
1 changed files with 8 additions and 2 deletions
10
lib/query.cc
10
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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue