lib: Expose query debug output via an environment variable
authorAustin Clements <amdragon@MIT.EDU>
Wed, 14 Mar 2012 02:31:30 +0000 (22:31 -0400)
committerDavid Bremner <bremner@debian.org>
Sun, 18 Mar 2012 12:14:22 +0000 (09:14 -0300)
commit75a05526334b721d719d6c8a8098ff64573e6c1e
tree7859c2cb2d5dc5521a453c38cc3fe2e709fb1726
parentb3e4417897f5b27883513c4714f7e84e377b5f5b
lib: Expose query debug output via an environment variable

Allow query debugging to be enabled at run-time by setting the
NOTMUCH_DEBUG_QUERY environment variable to a non-empty string.

Previously, enabling query debugging required recompiling, but parsed
queries are often useful for tracking down bugs in situations where
recompiling is inconvenient.
lib/query.cc